Skip to content

Commit

Permalink
fix(material/tabs): allow both foreground and background colors to be…
Browse files Browse the repository at this point in the history
… 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)
  • Loading branch information
crisbeto committed Dec 8, 2022
1 parent 3e9cac1 commit 15c77e0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/material/tabs/_tabs-common.scss
Expand Up @@ -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 {
Expand Down

0 comments on commit 15c77e0

Please sign in to comment.