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 Sep 6, 2024
1 parent 37b8c1a commit 65e09f5
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 65e09f5

Please sign in to comment.