Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit d89a682

Browse files
clshortfusekara
authored andcommitted
fix(tabs): support flexible content layout (#9451)
Fixes #9206, #9704, #9779
1 parent b0df030 commit d89a682

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/components/tabs/tabs.scss

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ md-tabs-wrapper {
120120
&.md-stretch-tabs {
121121
md-pagination-wrapper {
122122
width: 100%;
123-
display: flex;
124123
flex-direction: row;
125124
md-tab-item {
126125
flex-grow: 1;
@@ -157,7 +156,7 @@ md-tabs-canvas {
157156
md-pagination-wrapper {
158157
@include pie-clearfix;
159158
height: $tabs-header-height;
160-
display: block;
159+
display: flex;
161160
transition: transform $swift-ease-in-out-duration $swift-ease-in-out-timing-function;
162161
position: absolute;
163162
width: 999999px;
@@ -181,7 +180,7 @@ md-tabs-content-wrapper {
181180
}
182181

183182
md-tab-content {
184-
display: block;
183+
display: flex;
185184
position: absolute;
186185
top: 0;
187186
left: 0;
@@ -218,8 +217,11 @@ md-tab-content {
218217
visibility: hidden;
219218
}
220219
}
221-
> div.ng-leave {
222-
animation: 2 * $swift-ease-in-out-duration md-tab-content-hide;
220+
> div {
221+
flex: 1 0 100%;
222+
&.ng-leave {
223+
animation: 2 * $swift-ease-in-out-duration md-tab-content-hide;
224+
}
223225
}
224226
}
225227

0 commit comments

Comments
 (0)