Skip to content

Commit

Permalink
fix(DropdownItem): 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 78adc4b commit 626b5a2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import type { DropdownItemVariant } from './dropdown-item.types'

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

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

0 comments on commit 626b5a2

Please sign in to comment.