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:
commit
3c041b2ba1
1
changelog.d/emoji-picker-button-accessible.fix
Normal file
1
changelog.d/emoji-picker-button-accessible.fix
Normal file
@ -0,0 +1 @@
|
|||||||
|
Add alt text to emoji picker buttons
|
@ -28,6 +28,7 @@
|
|||||||
active: activeGroupView === group.id
|
active: activeGroupView === group.id
|
||||||
}"
|
}"
|
||||||
:title="group.text"
|
:title="group.text"
|
||||||
|
role="button"
|
||||||
@click.prevent="highlight(group.id)"
|
@click.prevent="highlight(group.id)"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
@ -116,6 +117,7 @@
|
|||||||
:key="group.id + emoji.displayText"
|
:key="group.id + emoji.displayText"
|
||||||
:title="maybeLocalizedEmojiName(emoji)"
|
:title="maybeLocalizedEmojiName(emoji)"
|
||||||
class="emoji-item"
|
class="emoji-item"
|
||||||
|
role="button"
|
||||||
@click.stop.prevent="onEmoji(emoji)"
|
@click.stop.prevent="onEmoji(emoji)"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
@ -126,6 +128,7 @@
|
|||||||
v-else
|
v-else
|
||||||
class="emoji-picker-emoji -custom"
|
class="emoji-picker-emoji -custom"
|
||||||
loading="lazy"
|
loading="lazy"
|
||||||
|
:alt="maybeLocalizedEmojiName(emoji)"
|
||||||
:src="emoji.imageUrl"
|
:src="emoji.imageUrl"
|
||||||
:data-emoji-name="group.id + emoji.displayText"
|
:data-emoji-name="group.id + emoji.displayText"
|
||||||
/>
|
/>
|
||||||
|
Loading…
Reference in New Issue
Block a user