From b4a2beb3c28145f01d452ece833b4dfe3eca4d66 Mon Sep 17 00:00:00 2001 From: "Patrick H. Lauke" Date: Thu, 21 Mar 2019 13:59:02 +0000 Subject: [PATCH] Check prefers-reduced-motion variable before adding reduced motion media query for animated progress bars (#28530) --- scss/_progress.scss | 6 ++++-- 1 file 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; + } } } }