From bff764b1fe846098844cbfe83ea6feac51fba697 Mon Sep 17 00:00:00 2001 From: Dani Guardiola Date: Tue, 30 Apr 2024 10:54:02 +0200 Subject: [PATCH] Remove deprecated util. (#61116) --- .../focal-point-picker/styles/focal-point-picker-style.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/components/src/focal-point-picker/styles/focal-point-picker-style.ts b/packages/components/src/focal-point-picker/styles/focal-point-picker-style.ts index 3ff8223e05e05c..71bf4b651b4ad7 100644 --- a/packages/components/src/focal-point-picker/styles/focal-point-picker-style.ts +++ b/packages/components/src/focal-point-picker/styles/focal-point-picker-style.ts @@ -9,7 +9,7 @@ import styled from '@emotion/styled'; */ import { Flex } from '../../flex'; import UnitControl from '../../unit-control'; -import { COLORS, CONFIG, reduceMotion } from '../../utils'; +import { COLORS, CONFIG } from '../../utils'; import type { FocalPointPickerControlsProps } from '../types'; import { INITIAL_BOUNDS } from '../utils'; @@ -106,10 +106,11 @@ export const GridView = styled.div` position: absolute; top: 50%; transform: translate3d( -50%, -50%, 0 ); - transition: opacity 100ms linear; z-index: 1; - ${ reduceMotion( 'transition' ) } + @media not ( prefers-reduced-motion ) { + transition: opacity 100ms linear; + } opacity: ${ ( { showOverlay }: { showOverlay?: boolean } ) => showOverlay ? 1 : 0 };