Skip to content

Commit

Permalink
fix(TabSlider): 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 35aebf4 commit 67c8865
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/tab-slider/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,25 +157,25 @@ export default plugin(({ addComponents, theme }) => {
},
},
//Rounded:sm
'&.nui-tabs-rounded': {
'&.nui-tabs-rounded-sm': {
'.nui-tab-slider-track, .nui-tab-slider-naver': {
[`@apply ${config.rounded.sm}`]: {},
},
},
//Rounded:md
'&.nui-tabs-smooth': {
'&.nui-tabs-rounded-md': {
'.nui-tab-slider-track, .nui-tab-slider-naver': {
[`@apply ${config.rounded.md}`]: {},
},
},
//Rounded:lg
'&.nui-tabs-curved': {
'&.nui-tabs-rounded-lg': {
'.nui-tab-slider-track, .nui-tab-slider-naver': {
[`@apply ${config.rounded.lg}`]: {},
},
},
//Rounded:full
'&.nui-tabs-full': {
'&.nui-tabs-rounded-full': {
'.nui-tab-slider-track, .nui-tab-slider-naver': {
[`@apply ${config.rounded.full}`]: {},
},
Expand Down
8 changes: 4 additions & 4 deletions src/plugins/components/tab-slider/tab-slider.variants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ export const size = {

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

export const color = {
Expand Down

0 comments on commit 67c8865

Please sign in to comment.