Skip to content

Commit 5f3874c

Browse files
committed
fix(a11y): remove nested button inside NuxtLink in AuthModal
1 parent 8dfc2d9 commit 5f3874c

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

app/components/Header/AuthModal.client.vue

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,10 @@ watch(user, async newUser => {
7979
<NuxtLink
8080
:to="{ name: 'profile-handle', params: { handle: user.handle } }"
8181
prefetch-on="interaction"
82+
class="block w-full px-4 py-2 font-mono text-sm text-fg-muted bg-bg-subtle border border-border rounded-md transition-colors duration-200 hover:text-fg hover:border-border-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fg/50 text-center"
83+
@click="authModal.close()"
8284
>
83-
<button
84-
class="w-full px-4 py-2 font-mono text-sm text-fg-muted bg-bg-subtle border border-border rounded-md transition-colors duration-200 hover:text-fg hover:border-border-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fg/50"
85-
@click="authModal.close()"
86-
>
87-
{{ $t('auth.modal.profile') }}
88-
</button>
85+
{{ $t('auth.modal.profile') }}
8986
</NuxtLink>
9087

9188
<button

0 commit comments

Comments
 (0)