Skip to content

Feature/306#315

Open
szafran89 wants to merge 5 commits into
feature/updatefrom
feature/306
Open

Feature/306#315
szafran89 wants to merge 5 commits into
feature/updatefrom
feature/306

Conversation

@szafran89
Copy link
Copy Markdown
Contributor

No description provided.

@vercel
Copy link
Copy Markdown

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
@ofrankowska ofrankowska linked an issue Jul 16, 2021 that may be closed by this pull request
Copy link
Copy Markdown

@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 }">
Copy link
Copy Markdown

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'
},
Copy link
Copy Markdown

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" />
Copy link
Copy Markdown

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'
Copy link
Copy Markdown

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'
}
},
Copy link
Copy Markdown

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'
Copy link
Copy Markdown

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