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 Jan 27, 2025
1 parent f014958 commit 89928dc
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 89928dc

Please sign in to comment.