From b9fe18c2f20442ba1a9b33cc523a67451f50cb03 Mon Sep 17 00:00:00 2001 From: Taylor Jones Date: Wed, 3 Nov 2021 12:59:23 -0500 Subject: [PATCH] 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> --- packages/components/src/components/tabs/_tabs.scss | 5 ++++- packages/styles/scss/components/tabs/_tabs.scss | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/components/src/components/tabs/_tabs.scss b/packages/components/src/components/tabs/_tabs.scss index 8921c57308ba..ea3696ed596f 100644 --- a/packages/components/src/components/tabs/_tabs.scss +++ b/packages/components/src/components/tabs/_tabs.scss @@ -710,8 +710,11 @@ @include focus-outline('reset'); @include type-style('body-short-01'); + @if not feature-flag-enabled('enable-v11-release') { + width: rem(160px); + } + overflow: hidden; - width: rem(160px); padding: $spacing-04 $spacing-05 $spacing-03; border-bottom: $tab-underline-color; color: $text-02; diff --git a/packages/styles/scss/components/tabs/_tabs.scss b/packages/styles/scss/components/tabs/_tabs.scss index 5c7e3923903d..5b5a0663f906 100644 --- a/packages/styles/scss/components/tabs/_tabs.scss +++ b/packages/styles/scss/components/tabs/_tabs.scss @@ -733,8 +733,11 @@ @include focus-outline('reset'); @include type-style('body-short-01'); + @if not feature-flag-enabled('enable-v11-release') { + width: rem(160px); + } + overflow: hidden; - width: rem(160px); padding: $spacing-04 $spacing-05 $spacing-03; border-bottom: $tab-underline-color; color: $text-secondary;