Skip to content

Commit 8fad5d1

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

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)