From 39fe590ded7fce6314048e3c75af5570b2a4a815 Mon Sep 17 00:00:00 2001 From: Ricardo Artemio Morales Date: Fri, 12 Jul 2024 18:07:07 -0400 Subject: [PATCH] Remove styling for prefers reduced motion --- packages/block-library/src/image/style.scss | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/packages/block-library/src/image/style.scss b/packages/block-library/src/image/style.scss index 62f8b77fb3263..1bb19bf29da69 100644 --- a/packages/block-library/src/image/style.scss +++ b/packages/block-library/src/image/style.scss @@ -10,12 +10,14 @@ vertical-align: bottom; box-sizing: border-box; - &.hide { - visibility: hidden; - } + @media (prefers-reduced-motion: no-preference) { + &.hide { + visibility: hidden; + } - &.show { - animation: show-content-image 0.4s; + &.show { + animation: show-content-image 0.4s; + } } }