You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Go on the link (At this point, you can already see the Checkbox component)
Open the terminal
Run npx shadcn-vue@latest add checkbox
Overwrite the component to see the generated component
The component has classes which override others
Describe the bug
When I generate Checkbox component using the CLI with the next command: npx shadcn-vue@0.8.7 add checkbox or npx shadcn-vue@latest add checkbox
And I go to the generated Checkbox component
So I have duplicate tailwind classes which overrides another: border-neutral-200 and border-neutral-900 or dark:border-neutral-800 and dark:border-neutral-50.
I didn't test all components but the behavior is also true for AlertDialogContent component.
Expected behavior
No tailwind classes which overrides another.
Conext & Screenshots (if applicable)
No response
The text was updated successfully, but these errors were encountered:
sadeghbarati
changed the title
[Bug]: Duplicate tailwind classes which override others
[Bug]: Duplicate tailwind classes with cssVariables: false which override others
Jan 27, 2024
Environment
Link to minimal reproduction
https://stackblitz.com/edit/vitejs-vite-95bgnv?terminal=dev
Steps to reproduce
Checkbox
component)npx shadcn-vue@latest add checkbox
Describe the bug
When I generate
Checkbox
component using the CLI with the next command:npx shadcn-vue@0.8.7 add checkbox
ornpx shadcn-vue@latest add checkbox
And I go to the generated
Checkbox
componentSo I have duplicate tailwind classes which overrides another:
border-neutral-200
andborder-neutral-900
ordark:border-neutral-800
anddark:border-neutral-50
.I didn't test all components but the behavior is also true for
AlertDialogContent
component.Expected behavior
No tailwind classes which overrides another.
Conext & Screenshots (if applicable)
No response
The text was updated successfully, but these errors were encountered: