Skip to content

Commit

Permalink
fix(tabs): only target direct descendants with mat-stretch-tabs (#12198)
Browse files Browse the repository at this point in the history
Fixes `mat-stretch-tabs` applying to all descendant tab headers, rather than direct descendants only.

Fixes #12196.
  • Loading branch information
crisbeto authored and jelbourn committed Aug 23, 2018
1 parent c2b488e commit 592af48
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/tabs/tab-group.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
}
}

.mat-tab-group[mat-stretch-tabs] .mat-tab-label {
// Note that we only want to target direct descendant tabs.
.mat-tab-group[mat-stretch-tabs] > .mat-tab-header .mat-tab-label {
flex-basis: 0;
flex-grow: 1;
}
Expand Down

0 comments on commit 592af48

Please sign in to comment.