Skip to content

Commit

Permalink
Remove reduceMotion utility. (#61963)
Browse files Browse the repository at this point in the history
* Remove reduceMotion utility.

* Update changelog.

Co-authored-by: DaniGuardiola <daniguardiola@git.wordpress.org>
Co-authored-by: mirka <0mirka00@git.wordpress.org>
Co-authored-by: tyxla <tyxla@git.wordpress.org>
Co-authored-by: alexstine <alexstine@git.wordpress.org>
Co-authored-by: joedolson <joedolson@git.wordpress.org>
  • Loading branch information
6 people committed May 25, 2024
1 parent 97422ea commit 278810c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 43 deletions.
1 change: 1 addition & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

### Internal

- Remove `reduceMotion` util ([#61963](https://github.com/WordPress/gutenberg/pull/61963)).
- Add type support for CSS Custom Properties ([#61872](https://github.com/WordPress/gutenberg/pull/61872)).
- Remove usage of deprecated spreading of `key` prop in JSX in CustomSelectControl and FormTokenField components ([#61692](https://github.com/WordPress/gutenberg/pull/61692)).
- Tooltip: Fix Ariakit tooltip store usage ([#61858](https://github.com/WordPress/gutenberg/pull/61858)).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@
*/
import styled from '@emotion/styled';

/**
* Internal dependencies
*/
import { reduceMotion } from '../../utils';

export const PointerCircle = styled.div`
background-color: transparent;
cursor: grab;
Expand All @@ -23,9 +18,10 @@ export const PointerCircle = styled.div`
border-radius: 50%;
backdrop-filter: blur( 16px ) saturate( 180% );
box-shadow: rgb( 0 0 0 / 10% ) 0px 0px 8px;
transition: transform 100ms linear;
${ reduceMotion( 'transition' ) }
@media not ( prefers-reduced-motion ) {
transition: transform 100ms linear;
}
${ ( { isDragging }: { isDragging: boolean } ) =>
isDragging &&
Expand Down
35 changes: 0 additions & 35 deletions packages/components/src/utils/reduce-motion.js

This file was deleted.

1 change: 0 additions & 1 deletion packages/components/src/utils/style-mixins.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
export { boxSizingReset } from './box-sizing';
export { rgba } from './colors';
export { reduceMotion } from './reduce-motion';
export { rtl } from './rtl';
export { font } from './font';
export { breakpoint } from './breakpoint';
Expand Down

0 comments on commit 278810c

Please sign in to comment.