Skip to content

Commit 6bb0ffe

Browse files
crisbetojelbourn
authored andcommitted
fix(tabs): only target direct descendants with mat-stretch-tabs (#12198)
Fixes `mat-stretch-tabs` applying to all descendant tab headers, rather than direct descendants only. Fixes #12196.
1 parent 8617423 commit 6bb0ffe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/tabs/tab-group.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
}
3030
}
3131

32-
.mat-tab-group[mat-stretch-tabs] .mat-tab-label {
32+
// Note that we only want to target direct descendant tabs.
33+
.mat-tab-group[mat-stretch-tabs] > .mat-tab-header .mat-tab-label {
3334
flex-basis: 0;
3435
flex-grow: 1;
3536
}

0 commit comments

Comments
 (0)