diff options
| author | Patrick H. Lauke <[email protected]> | 2019-03-21 13:59:02 +0000 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2019-03-27 20:57:28 +0200 |
| commit | 3ab044166723a855c480bc4e34a44a8e763208d7 (patch) | |
| tree | 7a8b6fd5d13ebad3097d84051f809c4ce6406ff0 | |
| parent | 60f31b32f869aea3938a200e43b7ad58206fd3d3 (diff) | |
| download | bootstrap-3ab044166723a855c480bc4e34a44a8e763208d7.tar.xz bootstrap-3ab044166723a855c480bc4e34a44a8e763208d7.zip | |
Check prefers-reduced-motion variable before adding reduced motion media query for animated progress bars (#28530)
| -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 ab9ea0ffb..391081aa0 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; + } } } } |
