Skip to content

Commit

Permalink
fix(material/tabs): set color on disabled tabs (#26319)
Browse files Browse the repository at this point in the history
Fixes that we weren't setting an explicit color on disabled tabs which meant that they would fall back to the user agent colors.

Fixes #26304.

(cherry picked from commit a1d5614)
  • Loading branch information
crisbeto authored and mmalerba committed Feb 1, 2023
1 parent e74e8c2 commit 719cff0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/material/tabs/_tabs-theme.scss
Expand Up @@ -20,9 +20,7 @@

@include mdc-helpers.using-mdc-theme($config) {
.mat-mdc-tab, .mat-mdc-tab-link {
&:not(.mat-mdc-tab-disabled) {
@include mdc-tab-mixins.text-label-color(rgba(mdc-theme-color.$on-surface, 0.6));
}
@include mdc-tab-mixins.text-label-color(rgba(mdc-theme-color.$on-surface, 0.6));

// MDC seems to include a background color on tabs which only stands out on dark themes.
// Disable for now for backwards compatibility. These styles are inside the theme in order
Expand Down

0 comments on commit 719cff0

Please sign in to comment.