Skip to content

Commit

Permalink
fix(material-experimental/mdc-progress-bar): buffer animation not dis…
Browse files Browse the repository at this point in the history
…abled under noop animations module (#22661)

Fixes that the buffer bar in the MDC-based `mat-progress-bar` still animates when animations are disabled.
  • Loading branch information
crisbeto committed May 18, 2021
1 parent aaf9ad2 commit cd87b38
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/material-experimental/mdc-progress-bar/progress-bar.scss
Expand Up @@ -21,7 +21,8 @@
animation: none;
}

.mdc-linear-progress__primary-bar {
.mdc-linear-progress__primary-bar,
.mdc-linear-progress__buffer-bar {
// There's a `transitionend` event that depends on this element. Add a very short
// transition when animations are disabled so that the event can still fire.
transition: transform 1ms;
Expand Down

0 comments on commit cd87b38

Please sign in to comment.