Skip to content

Commit

Permalink
RangeControl: Remove deprecated reducedMotion util. (#61119)
Browse files Browse the repository at this point in the history
* Remove deprecated util.

* Remove previous transition.

Co-authored-by: DaniGuardiola <daniguardiola@git.wordpress.org>
Co-authored-by: tyxla <tyxla@git.wordpress.org>
  • Loading branch information
3 people authored Apr 30, 2024
1 parent 414ffd4 commit db07eaf
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import styled from '@emotion/styled';
* Internal dependencies
*/
import NumberControl from '../../number-control';
import { COLORS, reduceMotion, rtl } from '../../utils';
import { COLORS, rtl } from '../../utils';
import { space } from '../../utils/space';

import type {
Expand Down Expand Up @@ -287,13 +287,15 @@ export const Tooltip = styled.span< TooltipProps >`
pointer-events: none;
position: absolute;
text-align: center;
transition: opacity 120ms ease;
user-select: none;
line-height: 1.4;
@media not ( prefers-reduced-motion ) {
transition: opacity 120ms ease;
}
${ tooltipShow };
${ tooltipPosition };
${ reduceMotion( 'transition' ) };
${ rtl(
{ transform: 'translateX(-50%)' },
{ transform: 'translateX(50%)' }
Expand Down

0 comments on commit db07eaf

Please sign in to comment.