Skip to content
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

Open
wants to merge 5 commits into
base: feature/update
Choose a base branch
from
Open

Feature/306 #315

wants to merge 5 commits into from

Conversation

szafran89
Copy link
Contributor

No description provided.

@vercel
Copy link

vercel bot commented Jun 4, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/snowdog/alpaca-ui/3uyt3U1HJMitcJC563DwxJ9XvMVE
✅ Preview: https://alpaca-ui-git-feature-306-snowdog1.vercel.app

@anqaka anqaka linked an issue Jun 4, 2021 that may be closed by this pull request
@anqaka anqaka removed a link to an issue Jun 4, 2021
Copy link

@ofrankowska ofrankowska left a 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 }">

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

formatting

Comment on lines +6 to +12
'transition-all ease-linear transition-300',
{
'text-xs inline-flex': variant ==='primary'
},
{
'flex-shrink-0 mr-4': variant !=='primary'
},

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" />

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'

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

Comment on lines +10 to +19
id: {
control: {
type: 'text'
}
},
label: {
control: {
type: 'text'
}
},

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

Comment on lines +79 to +83
:class="[
'h-12 w-12',
'flex items-center justify-center',
'absolute right-0',
variant === 'primary' ? 'top-6' : 'top-0'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it might be useful to have a variant in config for this. I can see also in designs that we have a seach input with icon on the left. Another slot and variant might be needed.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Input components review
3 participants