Skip to content

Commit

Permalink
Check prefers-reduced-motion variable before adding reduced motion me…
Browse files Browse the repository at this point in the history
…dia query for animated progress bars (#28530)
  • Loading branch information
patrickhlauke authored and XhmikosR committed Mar 27, 2019
1 parent 60f31b3 commit 3ab0441
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scss/_progress.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@
.progress-bar-animated {
animation: progress-bar-stripes $progress-bar-animation-timing;

@media (prefers-reduced-motion: reduce) {
animation: none;
@if $enable-prefers-reduced-motion-media-query {
@media (prefers-reduced-motion: reduce) {
animation: none;
}
}
}
}

0 comments on commit 3ab0441

Please sign in to comment.