diff --git a/src/components/tab_switcher/vertical_tab_switcher.jsx b/src/components/tab_switcher/vertical_tab_switcher.jsx
index 054e199b3..9367821a7 100644
--- a/src/components/tab_switcher/vertical_tab_switcher.jsx
+++ b/src/components/tab_switcher/vertical_tab_switcher.jsx
@@ -161,9 +161,13 @@ export default {
return (
- {header}
-
)
diff --git a/src/components/tab_switcher/vertical_tab_switcher.scss b/src/components/tab_switcher/vertical_tab_switcher.scss
index 3652c0228..669a49f73 100644
--- a/src/components/tab_switcher/vertical_tab_switcher.scss
+++ b/src/components/tab_switcher/vertical_tab_switcher.scss
@@ -30,6 +30,7 @@
.tab-content {
align-self: center;
+ height: 100%;
&:not(.-full-width) {
max-width: 40em;
@@ -52,10 +53,16 @@
}
}
- .tab-content-wrapper {
+ .tab-slot-wrapper {
+ flex: 1 1 auto;
+ height: 100%;
+ overflow-y: auto;
display: flex;
flex-direction: column;
- overflow-y: auto;
+ }
+
+ .tab-content-wrapper {
+ flex: 1 1 auto;
height: 100%;
&.-hidden {
@@ -85,6 +92,7 @@
> .contents {
display: block;
flex-grow: 1;
+ flex-shrink: 1;
}
> .tabs {