From 03264d8f2525590a95b53762f2eb6c765c4ddcbf Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Thu, 8 Dec 2022 13:33:58 +0100 Subject: [PATCH] fix(material/tabs): allow both foreground and background colors to be set (#26212) Fixes an internal regression after #26186 which broke the ability to have something like a primary background and an accent foreground. --- src/material/tabs/_tabs-common.scss | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/material/tabs/_tabs-common.scss b/src/material/tabs/_tabs-common.scss index 8a77ee416e07..3babe88825ea 100644 --- a/src/material/tabs/_tabs-common.scss +++ b/src/material/tabs/_tabs-common.scss @@ -204,9 +204,7 @@ $mat-tab-animation-duration: 500ms !default; } @mixin paginated-tab-header-with-background($header-selector) { - // TODO(crisbeto): the class is repeated here to ensure the specificity is high enough. - // We should be able to remove it once the tabs are switched to the new theming API. - &.mat-tabs-with-background.mat-tabs-with-background { + &.mat-tabs-with-background { // Note that these selectors target direct descendants so // that the styles don't apply to any nested tab groups. > #{$header-selector}, > .mat-mdc-tab-header-pagination {