Skip to content

Commit

Permalink
Disable shake for users with reduced motion preference
Browse files Browse the repository at this point in the history
For users with reduced motion settings enabled, disable the CSS shake
animation for invalid input.
  • Loading branch information
joe-op committed Jul 27, 2024
1 parent 8e6824c commit c484948
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/style/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -170,4 +170,8 @@ $browser-context: 16;
animation: shake .4s 1;
border-color: $_color-delete;
background: lighten($_color-delete, 35%);

@media (prefers-reduced-motion) {
animation: none;
}
}

0 comments on commit c484948

Please sign in to comment.