Skip to content

Commit

Permalink
🐛 [Page] Fix smooth scrolling in Safari
Browse files Browse the repository at this point in the history
  • Loading branch information
beefchimi committed Jul 22, 2024
1 parent 18646a8 commit fdca5cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/styles/reset.css
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ html {
text-rendering: geometricPrecision;
}

html:focus-within {
html {
/* Scoping to `&:focus-within` does not work in Safari. */
scroll-behavior: smooth;
}

Expand Down

0 comments on commit fdca5cb

Please sign in to comment.