Skip to content

Commit 45251ef

Browse files
committed
🔧 update (landing): wrap logo in button element for accessibility
1 parent ebbb9ea commit 45251ef

1 file changed

Lines changed: 12 additions & 7 deletions

File tree

src/landing/src/components/Hero.svelte

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,19 @@
3939

4040
<!-- Logo -->
4141
<div class="mx-auto mb-6 h-24 w-24 sm:h-32 sm:w-32 logo-glow">
42-
<img
43-
bind:this={logoEl}
44-
src="/tinyclaw_logo.png"
45-
alt=""
46-
aria-hidden="true"
47-
class="h-full w-full select-none cursor-pointer transition-transform duration-300 hover:scale-110"
42+
<button
43+
type="button"
44+
class="h-full w-full bg-transparent border-none p-0 cursor-pointer"
45+
aria-label="Tiny Claw logo animation"
4846
on:click={triggerTwitch}
49-
/>
47+
>
48+
<img
49+
bind:this={logoEl}
50+
src="/tinyclaw_logo.png"
51+
alt="Tiny Claw logo"
52+
class="h-full w-full select-none transition-transform duration-300 hover:scale-110"
53+
/>
54+
</button>
5055
</div>
5156

5257
<!-- Heading -->

0 commit comments

Comments
 (0)