feat: add aria-label for back button (#819)

This commit is contained in:
Ryan Cao 2023-01-07 01:46:06 +08:00 committed by GitHub
parent 1aa118283e
commit a311e0ec80
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 0 deletions

View file

@ -19,6 +19,7 @@ defineProps<{
<NuxtLink
v-if="backOnSmallScreen || back" flex="~ gap1" items-center btn-text p-0
:class="{ 'lg:hidden': backOnSmallScreen }"
:aria-label="$t('nav.back')"
@click="$router.go(-1)"
>
<div i-ri:arrow-left-line class="rtl-flip" />