Skip to content

Commit b9fe18c

Browse files
feat(tabs): make auto-width the default behind v11 flag (#10035)
* feat(tabs): make auto-width the default behind v11 flag * fix(tabs): remove unecessary width:auto Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
1 parent f24e5f9 commit b9fe18c

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

packages/components/src/components/tabs/_tabs.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,8 +710,11 @@
710710
@include focus-outline('reset');
711711
@include type-style('body-short-01');
712712

713+
@if not feature-flag-enabled('enable-v11-release') {
714+
width: rem(160px);
715+
}
716+
713717
overflow: hidden;
714-
width: rem(160px);
715718
padding: $spacing-04 $spacing-05 $spacing-03;
716719
border-bottom: $tab-underline-color;
717720
color: $text-02;

packages/styles/scss/components/tabs/_tabs.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,8 +733,11 @@
733733
@include focus-outline('reset');
734734
@include type-style('body-short-01');
735735

736+
@if not feature-flag-enabled('enable-v11-release') {
737+
width: rem(160px);
738+
}
739+
736740
overflow: hidden;
737-
width: rem(160px);
738741
padding: $spacing-04 $spacing-05 $spacing-03;
739742
border-bottom: $tab-underline-color;
740743
color: $text-secondary;

0 commit comments

Comments
 (0)