Skip to content

Commit

Permalink
fix(Listbox): 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 229f0fb commit 9502d8e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/plugins/components/listbox/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,25 +295,25 @@ export default plugin(({ addComponents, theme }) => {
},
},
//Rounded:sm
'&.nui-listbox-rounded': {
'&.nui-listbox-rounded-sm': {
'.nui-listbox-button, .nui-listbox-options, .nui-listbox-option': {
[`@apply ${config.rounded.sm}`]: {},
},
},
//Rounded:md
'&.nui-listbox-smooth': {
'&.nui-listbox-rounded-md': {
'.nui-listbox-button, .nui-listbox-options, .nui-listbox-option': {
[`@apply ${config.rounded.md}`]: {},
},
},
//Rounded:lg
'&.nui-listbox-curved': {
'&.nui-listbox-rounded-lg': {
'.nui-listbox-button, .nui-listbox-options, .nui-listbox-option': {
[`@apply ${config.rounded.lg}`]: {},
},
},
//Rounded:full
'&.nui-listbox-full': {
'&.nui-listbox-rounded-full': {
'.nui-listbox-button': {
[`@apply ${config.rounded.full}`]: {},
},
Expand Down
8 changes: 4 additions & 4 deletions src/plugins/components/listbox/listbox.variants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import type { ListboxVariant } from './listbox.types'

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

export const size = {
Expand Down

0 comments on commit 9502d8e

Please sign in to comment.