Skip to content

Commit

Permalink
feat: added reduce-motion, also updated mixing to use standard way
Browse files Browse the repository at this point in the history
  • Loading branch information
Mayank-Tripathi32 committed Dec 30, 2024
1 parent a28455c commit feecbf8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/block-library/src/freeform/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,9 @@

div[data-type="core/freeform"] {
&::before {
transition: border-color 0.1s linear, box-shadow 0.1s linear;
@include reduce-motion("transition");
@media not ( prefers-reduced-motion ) {
transition: border-color 0.1s linear, box-shadow 0.1s linear;
}
border: $border-width solid $gray-300;

// Windows High Contrast mode will show this outline.
Expand Down

0 comments on commit feecbf8

Please sign in to comment.