Add aria for react button
This commit is contained in:
parent
0b2f676e50
commit
48ee11fea3
|
@ -11,6 +11,8 @@
|
||||||
role="button"
|
role="button"
|
||||||
class="emoji-reaction btn button-default"
|
class="emoji-reaction btn button-default"
|
||||||
:class="{ '-picked-reaction': reactedWith(reaction.name) }"
|
:class="{ '-picked-reaction': reactedWith(reaction.name) }"
|
||||||
|
:title="reaction.url ? reaction.name : undefined"
|
||||||
|
:aria-pressed="reactedWith(reaction.name)"
|
||||||
@click="emojiOnClick(reaction.name, $event)"
|
@click="emojiOnClick(reaction.name, $event)"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
|
@ -19,7 +21,6 @@
|
||||||
<img
|
<img
|
||||||
v-if="reaction.url"
|
v-if="reaction.url"
|
||||||
:src="reaction.url"
|
:src="reaction.url"
|
||||||
:title="reaction.name"
|
|
||||||
class="reaction-emoji-content"
|
class="reaction-emoji-content"
|
||||||
width="1em"
|
width="1em"
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in a new issue