Merge branch 'tusooa/emoji-picker-button-accessible' into 'develop'

Make emoji picker buttons accessible

See merge request pleroma/pleroma-fe!1840
This commit is contained in:
HJ 2023-08-22 20:38:02 +00:00
commit 3c041b2ba1
2 changed files with 4 additions and 0 deletions

View File

@ -0,0 +1 @@
Add alt text to emoji picker buttons

View File

@ -28,6 +28,7 @@
active: activeGroupView === group.id
}"
:title="group.text"
role="button"
@click.prevent="highlight(group.id)"
>
<span
@ -116,6 +117,7 @@
:key="group.id + emoji.displayText"
:title="maybeLocalizedEmojiName(emoji)"
class="emoji-item"
role="button"
@click.stop.prevent="onEmoji(emoji)"
>
<span
@ -126,6 +128,7 @@
v-else
class="emoji-picker-emoji -custom"
loading="lazy"
:alt="maybeLocalizedEmojiName(emoji)"
:src="emoji.imageUrl"
:data-emoji-name="group.id + emoji.displayText"
/>