-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Closed
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/tabs
Description
Reproduction
https://stackblitz.com/edit/angular-zumj5j?file=src/app/tab-group-basic-example.html
Steps to reproduce:
- View example stackblitz
Expected Behavior
A mat tab group without a background color defined should always have a bottom border.
Actual Behavior
When a mat tab group is nested within another mat tab group which has the background color defined, its bottom border gets clobbered due to descendant css.
Remediation
I believe changing this rule:
// Remove header border when there is a background color
.mat-tab-group[class*='mat-background-'] .mat-tab-header,
.mat-tab-nav-bar[class*='mat-background-'] {
...to
// Remove header border when there is a background color
.mat-tab-group[class*='mat-background-'] > .mat-tab-header,
.mat-tab-nav-bar[class*='mat-background-'] {
...will resolve the issue, but I didn't fully test it.
Environment
Angular CLI: 12.1.3
Node: 14.16.0
Package Manager: yarn 1.22.10
OS: darwin x64
Angular: 12.1.3
... animations, cdk, cli, common, compiler, compiler-cli, core
... forms, language-service, localize, material
... material-moment-adapter, platform-browser
... platform-browser-dynamic, router
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1201.3
@angular-devkit/build-angular 12.1.3
@angular-devkit/core 12.1.3
@angular-devkit/schematics 12.1.3
@angular/flex-layout 12.0.0-beta.34
@schematics/angular 12.1.3
rxjs 6.6.7
typescript 4.3.5
Metadata
Metadata
Assignees
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/tabs