Skip to content

Commit 6d0e0ea

Browse files
committed
preview: fix minor issues
1 parent ccaf8e0 commit 6d0e0ea

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

sites/preview/src/routes/+page.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@
139139
<div class="mt-6 grid gap-4 @min-sm:grid-cols-2">
140140
<a
141141
href="/basic"
142-
class="inline-flex items-center justify-center gap-2 rounded-lg bg-blue-700 px-6 py-3 font-medium text-white transition-colors hover:bg-blue-800 active:scale-95"
142+
class="inline-flex items-center justify-center gap-2 rounded-lg bg-blue-700 px-6 py-3 font-medium text-white transition-colors hover:bg-blue-800 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-700 active:scale-95"
143143
>
144144
View Example
145145
</a>
@@ -179,7 +179,7 @@
179179
<div class="mt-6 grid gap-4 @min-sm:grid-cols-2">
180180
<a
181181
href="/virtualization"
182-
class="inline-flex items-center justify-center gap-2 rounded-lg bg-blue-700 px-6 py-3 font-medium text-white transition-colors hover:bg-blue-800 active:scale-95"
182+
class="inline-flex items-center justify-center gap-2 rounded-lg bg-blue-700 px-6 py-3 font-medium text-white transition-colors hover:bg-blue-800 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-700 active:scale-95"
183183
>
184184
View Example
185185
</a>

sites/preview/src/routes/CodeBlock.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
<pre class="overflow-x-auto p-4 pe-15 font-mono">{code}</pre>
5050

5151
<button
52-
class="absolute end-3 top-1/2 -translate-y-1/2 rounded-full p-2 hover:bg-current/8 active:bg-current/12"
52+
class="absolute end-3 top-1/2 -translate-y-1/2 rounded-full p-2 hover:bg-current/8 focus-visible:outline-2 focus-visible:outline-current active:bg-current/12"
5353
onclick={copyCode}
5454
>
5555
<CopyCodeIcon role="presentation" class="size-5" />

sites/preview/src/routes/GithubLink.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
{href}
1616
target="_blank"
1717
rel="noopener noreferrer"
18-
class="inline-flex items-center justify-center gap-2 rounded-lg bg-[#25292e] px-6 py-3 font-medium text-white transition-colors hover:bg-[#0d1117] active:scale-95"
18+
class="inline-flex items-center justify-center gap-2 rounded-lg bg-[#25292e] px-6 py-3 font-medium text-white transition-colors hover:bg-[#0d1117] focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#25292e] active:scale-95"
1919
>
2020
<GithubIcon role="presentation" class="size-5" />
2121
{@render children()}

sites/preview/src/routes/basic/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686

8787
<Tree {root} class="min-h-svh p-6">
8888
{#snippet children({ items })}
89-
{#each items as item}
89+
{#each items as item (item.node.id)}
9090
{#if item.visible}
9191
<TreeItem {item} />
9292
{/if}

0 commit comments

Comments
 (0)