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

zio/stable
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" />

View File

@ -22,6 +22,7 @@ const { env } = buildInfo
</NuxtLink>
<div hidden xl:flex items-center me-8 mt-2>
<NuxtLink
:aria-label="$t('nav.back')"
@click="$router.go(-1)"
>
<div i-ri:arrow-left-line class="rtl-flip" btn-text />

View File

@ -144,6 +144,7 @@
"unpin_on_profile": "Unpin on profile"
},
"nav": {
"back": "Go back",
"blocked_domains": "Blocked domains",
"blocked_users": "Blocked users",
"bookmarks": "Bookmarks",