feat: add aria-label for back button (#819)
parent
1aa118283e
commit
a311e0ec80
|
@ -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" />
|
||||
|
|
|
@ -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 />
|
||||
|
|
|
@ -144,6 +144,7 @@
|
|||
"unpin_on_profile": "Unpin on profile"
|
||||
},
|
||||
"nav": {
|
||||
"back": "Go back",
|
||||
"blocked_domains": "Blocked domains",
|
||||
"blocked_users": "Blocked users",
|
||||
"bookmarks": "Bookmarks",
|
||||
|
|
Loading…
Reference in New Issue