diff --git a/packages/calcite-components/src/components/tab/tab.scss b/packages/calcite-components/src/components/tab/tab.scss index 1a794bcdf7b..0877bde5694 100644 --- a/packages/calcite-components/src/components/tab/tab.scss +++ b/packages/calcite-components/src/components/tab/tab.scss @@ -13,6 +13,10 @@ @apply block h-full w-full overflow-auto; } +.content { + @apply box-border; +} + .scale-s .content { @apply text-n2h py-1; } diff --git a/packages/calcite-components/src/components/tabs/tabs.stories.ts b/packages/calcite-components/src/components/tabs/tabs.stories.ts index d7497dc1af1..1b234302214 100644 --- a/packages/calcite-components/src/components/tabs/tabs.stories.ts +++ b/packages/calcite-components/src/components/tabs/tabs.stories.ts @@ -378,3 +378,71 @@ export const updateIndicatorOffset_TestOnly = (): string => html` updateIndicatorOffset_TestOnly.parameters = { chromatic: { delay: 1000 }, }; + +export const fixedHeightNoVerticalScrollbar_TestOnly = (): string => html` + + + Watercraft + Automobiles + Aircrafts + + + +
Recommended for coastal use
+
+ +
Why is there a vertical scroll bar in this panel?
+
+
+ + +
A good choice for inland adventure
+
+ +
A good choice for inland adventure 2
+
+
+ + +
Cross continents quickly
+
+
+
+`; + +export const noVerticalScrollbarInsideShellPanel_TestOnly = (): string => html` + + + + + + Watercraft + Automobiles + Aircrafts + + + +
Recommended for coastal use
+
+ +
Why is there a vertical scroll bar in this panel?
+
+
+ + +
A good choice for inland adventure
+
+ +
A good choice for inland adventure 2
+
+
+ + +
Cross continents quickly
+
+
+
+
+
+
+`;