Skip to content

Commit 719cff0

Browse files
crisbetommalerba
authored andcommitted
fix(material/tabs): set color on disabled tabs (#26319)
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)
1 parent e74e8c2 commit 719cff0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/material/tabs/_tabs-theme.scss

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@
2020

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

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

0 commit comments

Comments
 (0)