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

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",