Skip to content

Commit

Permalink
fix(material/tabs): pagination not working inside flex container (#23160
Browse files Browse the repository at this point in the history
)

Fixes that the tab header doesn't collapse inside a flex container which prevents it from showing the pagination.

Fixes #23157.

(cherry picked from commit 73bef2b)
  • Loading branch information
crisbeto authored and andrewseguin committed Aug 6, 2021
1 parent 48b7ae7 commit 5d0ad3b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/material-experimental/mdc-tabs/tab-group.scss
Expand Up @@ -27,6 +27,9 @@
display: flex;
flex-direction: column;

// Fixes pagination issues inside flex containers (see #23157).
max-width: 100%;

&.mat-mdc-tab-group-inverted-header {
flex-direction: column-reverse;

Expand Down
3 changes: 3 additions & 0 deletions src/material/tabs/tab-group.scss
Expand Up @@ -7,6 +7,9 @@
display: flex;
flex-direction: column;

// Fixes pagination issues inside flex containers (see #23157).
max-width: 100%;

&.mat-tab-group-inverted-header {
flex-direction: column-reverse;
}
Expand Down

0 comments on commit 5d0ad3b

Please sign in to comment.