Skip to content

Commit

Permalink
fix(Button): 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 8bf9815 commit b84378c
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/button.variants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ export const size = {

export const rounded = {
none: '',
sm: 'nui-button-rounded',
md: 'nui-button-curved',
lg: 'nui-button-smooth',
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 ButtonVariant<'rounded'>

export const variant = {
Expand Down
8 changes: 4 additions & 4 deletions src/plugins/components/button/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,16 +133,16 @@ export default plugin(({ addComponents, theme }) => {
// #endregion

// #region Rounded
'&.nui-button-rounded': {
'&.nui-button-rounded-sm': {
[`@apply rounded-${config.rounded.small}`]: {},
},
'&.nui-button-smooth': {
'&.nui-button-rounded-md': {
[`@apply rounded-${config.rounded.medium}`]: {},
},
'&.nui-button-curved': {
'&.nui-button-rounded-lg': {
[`@apply rounded-${config.rounded.large}`]: {},
},
'&.nui-button-full': {
'&.nui-button-rounded-full': {
[`@apply rounded-${config.rounded.full}`]: {},

'.nui-button-badge': {
Expand Down

0 comments on commit b84378c

Please sign in to comment.