diff --git a/app/assets/stylesheets/blacklight/_search_form.scss b/app/assets/stylesheets/blacklight/_search_form.scss index 3e8c6939d..682a1c7dd 100644 --- a/app/assets/stylesheets/blacklight/_search_form.scss +++ b/app/assets/stylesheets/blacklight/_search_form.scss @@ -27,3 +27,10 @@ border-bottom-left-radius: 0; display: flex; } + +// ensure that the search bar appears at the top of the page when focused using +// anchor links, e.g. from the skip links navigation +.search-field, +.search-q { + scroll-margin: 5rem; +}