Prevent smooth scrolling for people who prefer reduced motion

This commit is contained in:
David Darnes 2021-01-14 11:00:33 +00:00 committed by GitHub
parent 6aed477cc9
commit 24f527e414
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {