Skip to content
This repository was archived by the owner on Sep 26, 2023. It is now read-only.

Commit 24f527e

Browse files
authored
Prevent smooth scrolling for people who prefer reduced motion
1 parent 6aed477 commit 24f527e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/reset.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ select {
5959

6060
/* Remove all animations and transitions for people that prefer not to see them */
6161
@media (prefers-reduced-motion: reduce) {
62+
html:focus-within {
63+
scroll-behavior: auto;
64+
}
6265
*,
6366
*::before,
6467
*::after {

0 commit comments

Comments
 (0)