Skip to content

Commit 73bef2b

Browse files
authored
fix(material/tabs): pagination not working inside flex container (#23160)
Fixes that the tab header doesn't collapse inside a flex container which prevents it from showing the pagination. Fixes #23157.
1 parent e57bae0 commit 73bef2b

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/material-experimental/mdc-tabs/tab-group.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
display: flex;
2828
flex-direction: column;
2929

30+
// Fixes pagination issues inside flex containers (see #23157).
31+
max-width: 100%;
32+
3033
&.mat-mdc-tab-group-inverted-header {
3134
flex-direction: column-reverse;
3235

src/material/tabs/tab-group.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
display: flex;
88
flex-direction: column;
99

10+
// Fixes pagination issues inside flex containers (see #23157).
11+
max-width: 100%;
12+
1013
&.mat-tab-group-inverted-header {
1114
flex-direction: column-reverse;
1215
}

0 commit comments

Comments
 (0)