Skip to content

Commit a60c3cb

Browse files
crisbetoatscott
authored andcommitted
fix(tabs): mat-align-tabs not working on mat-tab-nav-bar (angular#13818)
For consistency with `mat-tab-group`, adds support for `mat-align-tabs` to `mat-tab-nav-bar`. Fixes angular#13798.
1 parent c2512e2 commit a60c3cb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/lib/tabs/tab-nav-bar/tab-nav-bar.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@
99
.mat-tab-links {
1010
position: relative;
1111
display: flex;
12+
13+
[mat-align-tabs='center'] & {
14+
justify-content: center;
15+
}
16+
17+
[mat-align-tabs='end'] & {
18+
justify-content: flex-end;
19+
}
1220
}
1321

1422
// Wraps each link in the header

0 commit comments

Comments
 (0)