From 82bde2f40549c66cf5b28825b14fa612bbcbdf71 Mon Sep 17 00:00:00 2001 From: Driss Chelouati Date: Wed, 21 Feb 2024 10:26:34 +0100 Subject: [PATCH] fix(Accordion): rename rounded classes to match props --- src/plugins/components/accordion/accordion.variants.ts | 6 +++--- src/plugins/components/accordion/index.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/plugins/components/accordion/accordion.variants.ts b/src/plugins/components/accordion/accordion.variants.ts index d4cb898..84f75f7 100644 --- a/src/plugins/components/accordion/accordion.variants.ts +++ b/src/plugins/components/accordion/accordion.variants.ts @@ -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 = { diff --git a/src/plugins/components/accordion/index.ts b/src/plugins/components/accordion/index.ts index aac10b1..5d3001c 100644 --- a/src/plugins/components/accordion/index.ts +++ b/src/plugins/components/accordion/index.ts @@ -238,7 +238,7 @@ 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}`]: {}, }, @@ -246,7 +246,7 @@ export default plugin(({ addComponents, theme }) => { [`@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}`]: {}, }, @@ -254,7 +254,7 @@ export default plugin(({ addComponents, theme }) => { [`@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}`]: {}, },