Skip to content

Commit

Permalink
fix(Tag): 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 67c8865 commit 86dc59f
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/tag/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,19 @@ export default plugin(({ addComponents, theme }) => {
[`@apply text-${config.size.md.font.size}`]: {},
},
//Rounded:sm
'&.nui-tag-rounded': {
'&.nui-tag-rounded-sm': {
[`@apply ${config.rounded.sm}`]: {},
},
//Rounded:md
'&.nui-tag-smooth': {
'&.nui-tag-rounded-md': {
[`@apply ${config.rounded.md}`]: {},
},
//Rounded:lg
'&.nui-tag-curved': {
'&.nui-tag-rounded-lg': {
[`@apply ${config.rounded.lg}`]: {},
},
//Rounded:full
'&.nui-tag-full': {
'&.nui-tag-rounded-full': {
[`@apply ${config.rounded.full}`]: {},
},
//Variant:solid
Expand Down
8 changes: 4 additions & 4 deletions src/plugins/components/tag/tag.variants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ export const variant = {

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

export const color = {
Expand Down

0 comments on commit 86dc59f

Please sign in to comment.