mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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:
committed by
Andrew Seguin
parent
c3a8d0cab1
commit
89ea4853e8
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user