Skip to content

Commit b6bb28f

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 4819e22 commit b6bb28f

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

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

0 commit comments

Comments
 (0)