Skip to content

Commit

Permalink
fix(Checkbox): 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 f7169c6 commit 70d9db0
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/checkbox/checkbox.variants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import type { CheckboxVariant } from './checkbox.types'

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

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

0 comments on commit 70d9db0

Please sign in to comment.