Skip to content

Commit db1e9b2

Browse files
committed
chore: add aria-hidden to logo img
1 parent 723dcad commit db1e9b2

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

app/components/AppHeader.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,12 @@ onKeyStroke(',', e => {
4848
dir="ltr"
4949
class="inline-flex items-center gap-2 header-logo font-mono text-lg font-medium text-fg hover:text-fg transition-colors duration-200 focus-ring rounded"
5050
>
51-
<img alt="npmx" src="/logo.svg" class="w-8 h-8 rounded-lg" />
51+
<img
52+
aria-hidden="true"
53+
:alt="$t('alt_logo')"
54+
src="/logo.svg"
55+
class="w-8 h-8 rounded-lg"
56+
/>
5257
<span>npmx</span>
5358
</NuxtLink>
5459
</div>

app/pages/index.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ defineOgImageComponent('Default')
4040
class="flex items-center justify-center gap-2 header-logo font-mono text-5xl sm:text-7xl md:text-8xl font-medium tracking-tight mb-4 motion-safe:animate-fade-in motion-safe:animate-fill-both"
4141
>
4242
<img
43+
aria-hidden="true"
4344
:alt="$t('alt_logo')"
4445
src="/logo.svg"
4546
class="w-12 h-12 sm:w-20 sm:h-20 md:w-24 md:h-24 rounded-2xl sm:rounded-3xl"

0 commit comments

Comments
 (0)