Skip to content

Commit

Permalink
fix(Accordion): 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 93022c8 commit 82bde2f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/plugins/components/accordion/accordion.variants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ export const dotColor = {

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

export const action = {
Expand Down
6 changes: 3 additions & 3 deletions src/plugins/components/accordion/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,23 +238,23 @@ export default plugin(({ addComponents, theme }) => {
[`@apply rounded-b-${config.wrapper.rounded.none}`]: {},
},
},
'&.nui-accordion-rounded': {
'&.nui-accordion-rounded-sm': {
'&.nui-accordion:first-child': {
[`@apply rounded-t-${config.wrapper.rounded.sm}`]: {},
},
'&.nui-accordion:last-child': {
[`@apply rounded-b-${config.wrapper.rounded.sm}`]: {},
},
},
'&.nui-accordion-smooth': {
'&.nui-accordion-rounded-md': {
'&.nui-accordion:first-child': {
[`@apply rounded-t-${config.wrapper.rounded.md}`]: {},
},
'&.nui-accordion:last-child': {
[`@apply rounded-b-${config.wrapper.rounded.md}`]: {},
},
},
'&.nui-accordion-curved': {
'&.nui-accordion-rounded-lg': {
'&.nui-accordion:first-child': {
[`@apply rounded-t-${config.wrapper.rounded.lg}`]: {},
},
Expand Down

0 comments on commit 82bde2f

Please sign in to comment.