Skip to content

Commit d7e4226

Browse files
committed
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. (cherry picked from commit 3a8f001)
1 parent 6e080d7 commit d7e4226

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
@@ -171,8 +171,11 @@ $mat-tab-animation-duration: 500ms !default;
171171

172172
// The `span` is in the selector in order to increase the specificity, ensuring
173173
// that it's always higher than the selector that declares the transition.
174-
._mat-animation-noopable span.mdc-tab-indicator__content {
175-
transition: none;
174+
._mat-animation-noopable {
175+
span.mdc-tab-indicator__content,
176+
span.mdc-tab__text-label {
177+
transition: none;
178+
}
176179
}
177180
}
178181

0 commit comments

Comments
 (0)