From c531d0248be7863980a1f676643c2dea8301c009 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Mon, 24 Mar 2025 23:57:46 +0100 Subject: [PATCH] fix(Link): handle `aria-current` like `NuxtLink` / `RouterLink` --- src/runtime/components/Link.vue | 3 +++ src/runtime/vue/components/Link.vue | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/runtime/components/Link.vue b/src/runtime/components/Link.vue index bdcde2d9..4c29f4a1 100644 --- a/src/runtime/components/Link.vue +++ b/src/runtime/components/Link.vue @@ -102,6 +102,7 @@ defineOptions({ inheritAttrs: false }) const props = withDefaults(defineProps(), { as: 'button', type: 'button', + ariaCurrentValue: 'page', active: undefined, activeClass: '', inactiveClass: '' @@ -178,6 +179,7 @@ function resolveLinkClass({ route, isActive, isExactActive }: any) { (), { as: 'button', type: 'button', + ariaCurrentValue: 'page', active: undefined, activeClass: '', inactiveClass: '' @@ -204,6 +205,7 @@ function resolveLinkClass({ route, isActive, isExactActive }: any = {}) {