From fb9f4ee6e032ae6603803fb9dccec837a39289c6 Mon Sep 17 00:00:00 2001 From: Sainath Poojary Date: Fri, 3 Jan 2025 14:02:31 +0530 Subject: [PATCH] Toolbar: Standardize reduced motion handling using media queries --- packages/components/src/toolbar/toolbar/style.scss | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/components/src/toolbar/toolbar/style.scss b/packages/components/src/toolbar/toolbar/style.scss index c0cabacb84c77e..b53df6303e0fbf 100644 --- a/packages/components/src/toolbar/toolbar/style.scss +++ b/packages/components/src/toolbar/toolbar/style.scss @@ -56,9 +56,10 @@ z-index: -1; // Animate in. - animation: components-button__appear-animation 0.1s ease; - animation-fill-mode: forwards; - @include reduce-motion("animation"); + @media not (prefers-reduced-motion) { + animation: components-button__appear-animation 0.1s ease; + animation-fill-mode: forwards; + } } svg {