Skip to content

Commit

Permalink
fix(ButtonIcon): 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 5dd9dae commit de8ac54
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-icon/button-icon.variants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import type { ButtonIconVariant } from './button-icon.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 ButtonIconVariant<'rounded'>

export const size = {
Expand Down
8 changes: 4 additions & 4 deletions src/plugins/components/button-icon/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,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}`]: {},
},
//Loading
Expand Down

0 comments on commit de8ac54

Please sign in to comment.