-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/306 #315
base: feature/update
Are you sure you want to change the base?
Feature/306 #315
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/snowdog/alpaca-ui/3uyt3U1HJMitcJC563DwxJ9XvMVE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you merge changes from update
, update colors and add config in the new way?
@@ -0,0 +1,34 @@ | |||
<div :class="getClass('input')"> | |||
<!-- @slot Label (Named slot) --> | |||
<slot name="label" v-bind="{ label, id }"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
formatting
'transition-all ease-linear transition-300', | ||
{ | ||
'text-xs inline-flex': variant ==='primary' | ||
}, | ||
{ | ||
'flex-shrink-0 mr-4': variant !=='primary' | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are these classes added here instead of config?
]" | ||
> | ||
<!-- @slot Icon (Named slot) --> | ||
<slot name="icon" v-bind:variant="variant" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
formatting
@@ -0,0 +1,92 @@ | |||
import { mount, shallowMount } from '@vue/test-utils' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'shallowMount' is declared but its value is never read
id: { | ||
control: { | ||
type: 'text' | ||
} | ||
}, | ||
label: { | ||
control: { | ||
type: 'text' | ||
} | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
text controls for props generate automatically so I think this can be removed
:class="[ | ||
'h-12 w-12', | ||
'flex items-center justify-center', | ||
'absolute right-0', | ||
variant === 'primary' ? 'top-6' : 'top-0' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No description provided.