Skip to content

Commit

Permalink
Fix site title focus ring (#2704)
Browse files Browse the repository at this point in the history
  • Loading branch information
delucis authored Dec 16, 2024
1 parent 02d16f3 commit fd16470
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/wicked-insects-refuse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@astrojs/starlight': patch
---

Fixes display of focus indicator around site title
5 changes: 4 additions & 1 deletion packages/starlight/components/Header.astro
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ const shouldRenderSearch =

.title-wrapper {
/* Prevent long titles overflowing and covering the search and menu buttons on narrow viewports. */
overflow: hidden;
overflow: clip;
/* Avoid clipping focus ring around link inside title wrapper. */
padding: 0.25rem;
margin: -0.25rem;
}

.right-group,
Expand Down

0 comments on commit fd16470

Please sign in to comment.