Skip to content

Commit 274cc06

Browse files
techfgdelucis
andauthored
Avoid clipping focus indicator around site title (v2) (#3058)
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
1 parent db7d6c2 commit 274cc06

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

‎.changeset/five-radios-laugh.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@astrojs/starlight': patch
3+
---
4+
5+
Fixes display of focus indicator around site title

‎packages/starlight/components/SiteTitle.astro

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ const { siteTitle, siteTitleHref } = Astro.locals.starlightRoute;
4343
color: var(--sl-color-text-accent);
4444
text-decoration: none;
4545
white-space: nowrap;
46+
min-width: 0;
47+
}
48+
span {
49+
overflow: hidden;
4650
}
4751
img {
4852
height: calc(var(--sl-nav-height) - 2 * var(--sl-nav-pad-y));

0 commit comments

Comments
 (0)