Skip to content

Commit

Permalink
fix(ButtonClose): 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 1c0efcb commit 5dd9dae
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/button-close/button-close.variants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import type { ButtonCloseVariant } from './button-close.types'

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

export const size = {
Expand Down
8 changes: 4 additions & 4 deletions src/plugins/components/button-close/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,19 +60,19 @@ export default plugin(({ addComponents, theme }) => {
},
},
//Rounded:sm
'&.nui-button-rounded': {
'&.nui-button-rounded-sm': {
[`@apply ${config.rounded.sm}`]: {},
},
//Rounded:md
'&.nui-button-smooth': {
'&.nui-button-rounded-md': {
[`@apply ${config.rounded.md}`]: {},
},
//Rounded:lg
'&.nui-button-curved': {
'&.nui-button-rounded-lg': {
[`@apply ${config.rounded.lg}`]: {},
},
//Rounded:full
'&.nui-button-full': {
'&.nui-button-rounded-full': {
[`@apply ${config.rounded.full}`]: {},
},
//Color:default
Expand Down

0 comments on commit 5dd9dae

Please sign in to comment.