Skip to content

Commit

Permalink
Avoid clipping focus indicator around site title
Browse files Browse the repository at this point in the history
  • Loading branch information
delucis committed Dec 16, 2024
1 parent 02d16f3 commit 384b60a
Showing 1 changed file with 4 additions and 1 deletion.
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 384b60a

Please sign in to comment.