[Accessibility] Emoji Picker: Support screen readers (#1803)

This commit is contained in:
Alexander Zinchuk 2022-04-01 20:43:48 +02:00
parent 911d40339b
commit 5b7bda0931

View File

@ -24,7 +24,9 @@ const EmojiButton: FC<OwnProps> = ({ emoji, focus, onClick }) => {
onMouseDown={handleClick}
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>
);
};