Skip to content

Commit 3a8f001

Browse files
authored
fix(material/tabs): disable tab label color transition when animations are disabled (#25308)
Fixes that the transition of the tab label color wasn't being disabled when all animations are disabled.
1 parent e250c64 commit 3a8f001

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/material-experimental/mdc-tabs/_tabs-common.scss

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,11 @@ $mat-tab-animation-duration: 500ms !default;
161161

162162
// The `span` is in the selector in order to increase the specificity, ensuring
163163
// that it's always higher than the selector that declares the transition.
164-
._mat-animation-noopable span.mdc-tab-indicator__content {
165-
transition: none;
164+
._mat-animation-noopable {
165+
span.mdc-tab-indicator__content,
166+
span.mdc-tab__text-label {
167+
transition: none;
168+
}
166169
}
167170
}
168171

0 commit comments

Comments
 (0)