fix(a11y): add labels to comment interactions

This commit is contained in:
kolaente 2025-01-22 11:13:21 +01:00
parent 7c27413dd1
commit 1ac553943b
No known key found for this signature in database
GPG Key ID: F40E70337AB24C9B
2 changed files with 12 additions and 2 deletions

View File

@ -35,6 +35,9 @@
height="48"
width="48"
>
<figcaption class="tw-sr-only">
{{ $t('misc.avatarOfUser', {user: getDisplayName(c.author)}) }}
</figcaption>
</figure>
<div class="media-content">
<div class="comment-info">
@ -64,7 +67,10 @@
class="comment-permalink"
:title="$t('task.comment.permalink')"
@click.prevent.stop="copy(getCommentUrl(`${c.id}`))"
><Icon icon="link" /></a>
>
<span class="tw-sr-only">{{ $t('task.comment.permalink') }}</span>
<Icon icon="link" />
</a>
<CustomTransition name="fade">
<span
v-if="
@ -136,6 +142,9 @@
height="48"
width="48"
>
<figcaption class="tw-sr-only">
{{ $t('misc.avatarOfUser', {user: getDisplayName(authStore.info)}) }}
</figcaption>
</figure>
<div class="media-content">
<div class="form">

View File

@ -587,7 +587,8 @@
"created": "Created at",
"createdBy": "Created by {0}",
"actions": "Actions",
"cannotBeUndone": "This cannot be undone!"
"cannotBeUndone": "This cannot be undone!",
"avatarOfUser": "{user}'s profile image"
},
"input": {
"resetColor": "Reset Color",