Skip to content

Commit

Permalink
fix(Dropdown): rename rounded classes to match props
Browse files Browse the repository at this point in the history
  • Loading branch information
driss-chelouati committed Feb 21, 2024
1 parent 70d9db0 commit 78adc4b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/plugins/components/dropdown/dropdown.variants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ export const size = {

export const rounded = {
none: '',
sm: 'nui-menu-rounded',
md: 'nui-menu-smooth',
lg: 'nui-menu-curved',
full: 'nui-menu-curved',
sm: 'nui-menu-rounded-sm',
md: 'nui-menu-rounded-md',
lg: 'nui-menu-rounded-lg',
full: 'nui-menu-rounded-lg',
} as const satisfies DropdownVariant<'rounded'>

export const color = {
Expand Down
6 changes: 3 additions & 3 deletions src/plugins/components/dropdown/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,15 @@ export default plugin(({ addComponents, theme }) => {
'@apply w-72': {},
},
//Rounded:sm
'&.nui-menu-rounded': {
'&.nui-menu-rounded-sm': {
[`@apply ${config.menu.rounded.sm}`]: {},
},
//Rounded:md
'&.nui-menu-smooth': {
'&.nui-menu-rounded-md': {
[`@apply ${config.menu.rounded.md}`]: {},
},
//Rounded:lg
'&.nui-menu-curved': {
'&.nui-menu-rounded-lg': {
[`@apply ${config.menu.rounded.lg}`]: {},
},
//Color:default
Expand Down

0 comments on commit 78adc4b

Please sign in to comment.