[Accessibility] Emoji Picker: Support screen readers (#1803)
This commit is contained in:
parent
911d40339b
commit
5b7bda0931
@ -24,7 +24,9 @@ const EmojiButton: FC<OwnProps> = ({ emoji, focus, onClick }) => {
|
|||||||
onMouseDown={handleClick}
|
onMouseDown={handleClick}
|
||||||
title={`:${emoji.names[0]}:`}
|
title={`:${emoji.names[0]}:`}
|
||||||
>
|
>
|
||||||
{IS_EMOJI_SUPPORTED ? emoji.native : <img src={`./img-apple-64/${emoji.image}.png`} alt="" loading="lazy" />}
|
{IS_EMOJI_SUPPORTED
|
||||||
|
? emoji.native
|
||||||
|
: <img src={`./img-apple-64/${emoji.image}.png`} alt={emoji.native} loading="lazy" />}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user