Add aria for react button

This commit is contained in:
tusooa 2023-05-22 22:18:42 -04:00
parent 0b2f676e50
commit 48ee11fea3
No known key found for this signature in database
GPG Key ID: 42AEC43D48433C51
1 changed files with 2 additions and 1 deletions

View File

@ -11,6 +11,8 @@
role="button"
class="emoji-reaction btn button-default"
:class="{ '-picked-reaction': reactedWith(reaction.name) }"
:title="reaction.url ? reaction.name : undefined"
:aria-pressed="reactedWith(reaction.name)"
@click="emojiOnClick(reaction.name, $event)"
>
<span
@ -19,7 +21,6 @@
<img
v-if="reaction.url"
:src="reaction.url"
:title="reaction.name"
class="reaction-emoji-content"
width="1em"
>