From b8dffdee3e976527c98ecef84aa2dffe8a12a193 Mon Sep 17 00:00:00 2001 From: michael barakat Date: Mon, 3 Apr 2023 13:12:06 -0700 Subject: [PATCH] Adding max width on tab content --- packages/web-components/src/tab/tab.styles.ts | 1 + packages/web-components/src/tabs/tabs.stories.ts | 16 ++++++++-------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/packages/web-components/src/tab/tab.styles.ts b/packages/web-components/src/tab/tab.styles.ts index a1eaf98f228bb4..0f547822488860 100644 --- a/packages/web-components/src/tab/tab.styles.ts +++ b/packages/web-components/src/tab/tab.styles.ts @@ -41,6 +41,7 @@ export const styles = css` display: inline-flex; flex-direction: column; padding: 0 2px; + max-width: 155px; } :host([aria-selected='true']) { diff --git a/packages/web-components/src/tabs/tabs.stories.ts b/packages/web-components/src/tabs/tabs.stories.ts index 76479f1e0dcca1..bd94d939ac18ed 100644 --- a/packages/web-components/src/tabs/tabs.stories.ts +++ b/packages/web-components/src/tabs/tabs.stories.ts @@ -21,10 +21,10 @@ const tabsDefault = html` size=${x => x.size} activeid=${x => x.activeid} > - First Tab - Second Tab - Third Tab - Fourth Tab + First Tab + Second Tab + Third Tab + Fourth Tab Tab One Content Tab Two Content @@ -36,10 +36,10 @@ export const TabsDefault = renderComponent(tabsDefault).bind({}); const tabsHorizontal = html` - First Tab - Second Tab - Third Tab - Fourth Tab + First Tab + Second Tab + Third Tab + Fourth Tab