Skip to content

Commit

Permalink
fix(Card): 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 de8ac54 commit f7169c6
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/card/card.variants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import type { CardVariant } from './card.types'

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

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

0 comments on commit f7169c6

Please sign in to comment.