diff options
author | Patrick H. Lauke <redux@splintered.co.uk> | 2019-03-21 16:59:02 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2019-03-21 16:59:02 +0300 |
commit | b4a2beb3c28145f01d452ece833b4dfe3eca4d66 (patch) | |
tree | b9c5defa2f785e9640285454dfb12018f2dbf3f1 /scss/_progress.scss | |
parent | 1f7f876810c51d31baa6096465bd8501b2e23d9a (diff) |
Check prefers-reduced-motion variable before adding reduced motion media query for animated progress bars (#28530)
Diffstat (limited to 'scss/_progress.scss')
-rw-r--r-- | scss/_progress.scss | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scss/_progress.scss b/scss/_progress.scss index ab9ea0ffbe..391081aa08 100644 --- a/scss/_progress.scss +++ b/scss/_progress.scss @@ -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; + } } } } |