commit: 48ee11fea35123090762d98f5249168679f05e3a
parent 0b2f676e50c5fb8da1d5e673ee6a2723ee7c9e1e
Author: tusooa <tusooa@kazv.moe>
Date: Mon, 22 May 2023 22:18:42 -0400
Add aria for react button
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/components/emoji_reactions/emoji_reactions.vue b/src/components/emoji_reactions/emoji_reactions.vue
@@ -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"
>