Skip to content

Commit 15c77e0

Browse files
committed
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. (cherry picked from commit 03264d8)
1 parent 3e9cac1 commit 15c77e0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/material/tabs/_tabs-common.scss

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,7 @@ $mat-tab-animation-duration: 500ms !default;
204204
}
205205

206206
@mixin paginated-tab-header-with-background($header-selector) {
207-
// TODO(crisbeto): the class is repeated here to ensure the specificity is high enough.
208-
// We should be able to remove it once the tabs are switched to the new theming API.
209-
&.mat-tabs-with-background.mat-tabs-with-background {
207+
&.mat-tabs-with-background {
210208
// Note that these selectors target direct descendants so
211209
// that the styles don't apply to any nested tab groups.
212210
> #{$header-selector}, > .mat-mdc-tab-header-pagination {

0 commit comments

Comments
 (0)