Skip to content

Commit

Permalink
fix(material/tabs): disable tab label color transition when animation…
Browse files Browse the repository at this point in the history
…s 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)
  • Loading branch information
crisbeto committed Jul 20, 2022
1 parent 4819e22 commit b6bb28f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/material-experimental/mdc-tabs/_tabs-common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,11 @@ $mat-tab-animation-duration: 500ms !default;

// The `span` is in the selector in order to increase the specificity, ensuring
// that it's always higher than the selector that declares the transition.
._mat-animation-noopable span.mdc-tab-indicator__content {
transition: none;
._mat-animation-noopable {
span.mdc-tab-indicator__content,
span.mdc-tab__text-label {
transition: none;
}
}
}

Expand Down

0 comments on commit b6bb28f

Please sign in to comment.