Skip to content

Commit 5b477a0

Browse files
committed
tweak some focus states
1 parent 38750eb commit 5b477a0

File tree

2 files changed

+21
-9
lines changed

2 files changed

+21
-9
lines changed

apps/svelte.dev/src/routes/_home/Video.svelte

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@
197197
label {
198198
opacity: 0.2;
199199
transition: opacity 0.2s;
200+
border-radius: var(--sk-border-radius);
200201
}
201202
202203
.top-controls {
@@ -237,12 +238,14 @@
237238
border-radius: 0 var(--sk-border-radius) var(--sk-border-radius) var(--sk-border-radius);
238239
} */
239240
240-
.video-player:hover label {
241+
.video-player:hover label,
242+
.video-player:focus-within label {
241243
opacity: 1;
242244
}
243245
244246
.video-player input:focus-visible ~ img {
245247
outline: 2px solid var(--sk-fg-accent);
246248
outline-offset: 2px;
249+
border-radius: var(--sk-border-radius);
247250
}
248251
</style>

packages/site-kit/src/lib/nav/Nav.svelte

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -125,14 +125,17 @@ Top navigation bar for the application. It provides a slot for the left side, th
125125
<Search />
126126

127127
<div class="external-links">
128-
<a href="/chat" data-icon="discord" aria-label="Discord Chat"></a>
129-
<a
130-
href="https://bsky.app/profile/sveltesociety.dev"
131-
data-icon="bluesky"
132-
aria-label="Svelte Society on Bluesky"
133-
></a>
134-
<a href="https://github.com/sveltejs/svelte" data-icon="github" aria-label="GitHub Repo"
135-
></a>
128+
<a href="/chat" aria-label="Discord Chat">
129+
<span data-icon="discord"></span>
130+
</a>
131+
132+
<a href="https://bsky.app/profile/sveltesociety.dev" aria-label="Svelte Society on Bluesky">
133+
<span data-icon="bluesky"></span>
134+
</a>
135+
136+
<a href="https://github.com/sveltejs/svelte" aria-label="GitHub Repo">
137+
<span data-icon="github"></span>
138+
</a>
136139
</div>
137140

138141
<FontToggle />
@@ -281,6 +284,10 @@ Top navigation bar for the application. It provides a slot for the left side, th
281284
display: flex;
282285
height: 100%;
283286
margin: 0 0.5rem;
287+
288+
a {
289+
outline-offset: -2px;
290+
}
284291
}
285292
}
286293
@@ -377,9 +384,11 @@ Top navigation bar for the application. It provides a slot for the left side, th
377384
display: contents;
378385
379386
[data-icon] {
387+
display: flex;
380388
background: var(--sk-fg-3);
381389
padding: 0 0.5rem;
382390
height: 100%;
391+
aspect-ratio: 1;
383392
mask: no-repeat 50% 50%;
384393
mask-size: calc(100% - 1rem) auto;
385394
}

0 commit comments

Comments
 (0)