Skip to content

Commit

Permalink
fix(Select): 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 1398e3e commit 35aebf4
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/select/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,25 +111,25 @@ export default plugin(({ addComponents, theme }) => {
},
},
//Rounded:sm
'&.nui-select-rounded': {
'&.nui-select-rounded-sm': {
'.nui-select': {
[`@apply ${config.rounded.sm}`]: {},
},
},
//Rounded:md
'&.nui-select-smooth': {
'&.nui-select-rounded-md': {
'.nui-select': {
[`@apply ${config.rounded.md}`]: {},
},
},
//Rounded:lg
'&.nui-select-curved': {
'&.nui-select-rounded-lg': {
'.nui-select': {
[`@apply ${config.rounded.lg}`]: {},
},
},
//Rounded:full
'&.nui-select-full': {
'&.nui-select-rounded-full': {
'.nui-select': {
[`@apply ${config.rounded.full}`]: {},
},
Expand Down
8 changes: 4 additions & 4 deletions src/plugins/components/select/select.variants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import type { SelectVariant } from './select.types'

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

export const size = {
Expand Down

0 comments on commit 35aebf4

Please sign in to comment.