From 24f527e41419841b06eac09c8f07b3139cb867a1 Mon Sep 17 00:00:00 2001 From: David Darnes Date: Thu, 14 Jan 2021 11:00:33 +0000 Subject: [PATCH] Prevent smooth scrolling for people who prefer reduced motion --- src/reset.css | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/reset.css b/src/reset.css index 854dc7a..f3d489c 100644 --- a/src/reset.css +++ b/src/reset.css @@ -59,6 +59,9 @@ select { /* Remove all animations and transitions for people that prefer not to see them */ @media (prefers-reduced-motion: reduce) { + html:focus-within { + scroll-behavior: auto; + } *, *::before, *::after {