Skip to content

Commit

Permalink
feat(Tabs): add new segemented-control-rounded variant
Browse files Browse the repository at this point in the history
  • Loading branch information
gravitano committed Jun 15, 2023
1 parent c6fa7d7 commit 71cefbc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/tabs/src/variants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ export const tabVariants = [
'filled',
'underline-filled',
'segmented-control',
'segmented-control-rounded',
];

export type TabVariants = typeof tabVariants[number];
11 changes: 10 additions & 1 deletion packages/themes/src/morpheme/_tabs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,8 @@
}

// segmented control
&--segmented-control {
&--segmented-control,
&--segmented-control-rounded {
--v-tabs-slider-height: 40px;
--v-tabs-padding-x: 0;
--v-tabs-padding-y: 0;
Expand Down Expand Up @@ -369,6 +370,14 @@
}
}

&--segmented-control-rounded {
.v-tabs-items,
.v-tabs-item,
.v-tabs-slider {
border-radius: var(--border-radius-full);
}
}

// grow
&--grow {
.v-tabs-items {
Expand Down

0 comments on commit 71cefbc

Please sign in to comment.