diff --git a/site/assets/scss/_scrolling.scss b/site/assets/scss/_scrolling.scss index dcd9f3d3956c..84db8809a7f9 100644 --- a/site/assets/scss/_scrolling.scss +++ b/site/assets/scss/_scrolling.scss @@ -1,5 +1,10 @@ // When navigating with the keyboard, prevent focus from landing behind the sticky header -main *:focus { - scroll-margin-top: 100px; +main { + a, + button, + [tabindex="0"] { + scroll-margin-top: 100px; + scroll-margin-bottom: 100px; + } }