Skip to content

Commit 58eccc3

Browse files
[HEADER] Fix focus outline on Chromium browsers and iOS Safari (#26934)
* [HEADER] Fix focus outline on Chromium browsers and iOS Safari * [HEADER] Removed unnecessary css (already inherited from starlight defaults)
1 parent b2f1361 commit 58eccc3

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

src/components/overrides/Header.astro

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,25 @@ import HeaderDropdowns from "../HeaderDropdowns.tsx";
4848
}
4949

5050
:global(starlight-theme-select > label > select) {
51-
line-height: 1.25rem;
52-
}
51+
line-height: 1.25rem;
52+
margin: 1px 1px;
53+
}
54+
55+
:global(
56+
starlight-theme-select > label > select:focus,
57+
starlight-theme-select > label > select:focus-visible
58+
) {
59+
margin: 1px 1px;
60+
outline-offset: -4px;
61+
}
62+
63+
:global(starlight-theme-select > label > .label-icon) {
64+
left: 8%;
65+
}
66+
67+
:global(starlight-theme-select > label > .caret) {
68+
left: 75%;
69+
}
5370

5471
@media screen and (min-width: 800px) {
5572
#right-group {

0 commit comments

Comments
 (0)