From 27b8114a320050886fff08cbe58e0bca4000bc33 Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Fri, 23 Dec 2022 13:36:59 +0200 Subject: [PATCH] fix(material/tabs): set color on disabled tabs 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. --- src/material/tabs/_tabs-theme.scss | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/material/tabs/_tabs-theme.scss b/src/material/tabs/_tabs-theme.scss index 4a88caa2da77..28dbb89667e5 100644 --- a/src/material/tabs/_tabs-theme.scss +++ b/src/material/tabs/_tabs-theme.scss @@ -19,9 +19,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