Skip to content

Commit

Permalink
components - inputStyleNeutral: Remove deprecated reducedMotion uti…
Browse files Browse the repository at this point in the history
…l. (#61122)

* 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 committed Apr 30, 2024
1 parent 0221522 commit 414ffd4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/components/src/utils/input/base.js
Expand Up @@ -6,16 +6,17 @@ import { css } from '@emotion/react';
/**
* Internal dependencies
*/
import { reduceMotion } from '../reduce-motion';
import { COLORS } from '../colors-values';
import { CONFIG } from '../';

export const inputStyleNeutral = css`
box-shadow: 0 0 0 transparent;
transition: box-shadow 0.1s linear;
border-radius: ${ CONFIG.radiusBlockUi };
border: ${ CONFIG.borderWidth } solid ${ COLORS.ui.border };
${ reduceMotion( 'transition' ) }
@media not ( prefers-reduced-motion ) {
transition: box-shadow 0.1s linear;
}
`;

export const inputStyleFocus = css`
Expand Down

0 comments on commit 414ffd4

Please sign in to comment.