feat(tabs): support stretched tabs in mat-tab-nav-bar (#10368)

Adds support for stretched tabs in the tab nav bar. Also removes a duplicate selector.

Fixes #8871.
This commit is contained in:
Kristiyan Kostadinov
2018-03-19 21:20:08 +01:00
committed by Andrew Seguin
parent c3a8d0cab1
commit 89ea4853e8
2 changed files with 7 additions and 1 deletions
-1
View File
@@ -29,7 +29,6 @@
}
}
.mat-tab-group[mat-stretch-tabs] .mat-tab-label,
.mat-tab-group[mat-stretch-tabs] .mat-tab-label {
flex-basis: 0;
flex-grow: 1;
@@ -8,6 +8,7 @@
.mat-tab-links {
position: relative;
display: flex;
}
// Wraps each link in the header
@@ -17,8 +18,14 @@
text-decoration: none; // Removes anchor underline styling
position: relative;
overflow: hidden; // Keeps the ripple from extending outside the element bounds
[mat-stretch-tabs] & {
flex-basis: 0;
flex-grow: 1;
}
}
@media ($mat-xsmall) {
.mat-tab-link {
min-width: 72px;