From 8896f0a3c675d11ed1eed13a15ddbca0cc493db2 Mon Sep 17 00:00:00 2001 From: im3dabasia Date: Tue, 31 Dec 2024 09:49:33 +0530 Subject: [PATCH] Block Directory: Standardize reduced motion handling using media queries --- .../src/components/downloadable-block-list-item/style.scss | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/block-directory/src/components/downloadable-block-list-item/style.scss b/packages/block-directory/src/components/downloadable-block-list-item/style.scss index e13e46ef8d8786..e30722c88ee791 100644 --- a/packages/block-directory/src/components/downloadable-block-list-item/style.scss +++ b/packages/block-directory/src/components/downloadable-block-list-item/style.scss @@ -15,7 +15,10 @@ background: none; border: 0; text-align: left; - transition: box-shadow 0.1s linear; + + @media not (prefers-reduced-motion) { + transition: box-shadow 0.1s linear; + } // The item contains absolutely positioned items. // Set `position: relative` on the parent to prevent overflow issues