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

Commit 6aed477

Browse files
authored
Only allow smooth scrolling when focused in the page
1 parent 2b12949 commit 6aed477

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/reset.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ ol[role="list"] {
2626
}
2727

2828
/* Set core root defaults */
29-
html {
29+
html:focus-within {
3030
scroll-behavior: smooth;
3131
}
3232

0 commit comments

Comments
 (0)