Skip to content

Commit ab6e12f

Browse files
authored
fix(material/tabs): tab header border reset when parent has a background color (#23450)
When a background color is set on a tab group, we reset the tab header's bottom border. The problem is that the selector was too broad which made it apply to nested tabs as well. These changes fix the issue by making the selector more specific. Fixes #23432.
1 parent 829e095 commit ab6e12f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/material/tabs/_tabs-theme.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
}
4343

4444
// Remove header border when there is a background color
45-
.mat-tab-group[class*='mat-background-'] .mat-tab-header,
45+
.mat-tab-group[class*='mat-background-'] > .mat-tab-header,
4646
.mat-tab-nav-bar[class*='mat-background-'] {
4747
border-bottom: none;
4848
border-top: none;

0 commit comments

Comments
 (0)