Skip to content

Commit

Permalink
Merge pull request #3506 from projectblacklight/backport-3505
Browse files Browse the repository at this point in the history
Ensure that the search bar is visible when focused via anchor link
  • Loading branch information
jcoyne authored Jan 31, 2025
2 parents b1696fe + 05c5ab2 commit a9910ac
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/assets/stylesheets/blacklight/_search_form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit a9910ac

Please sign in to comment.