Improve black emojis accessibility
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
@ -81,7 +81,7 @@ class EmojiNode extends DecoratorNode<JSX.Element> {
|
||||
decorate(): JSX.Element {
|
||||
const emoji = this.__emoji;
|
||||
if (isNativeEmoji(emoji)) {
|
||||
return <Component emoji={emoji.native} alt={emoji.colons} className='emojione h-4 w-4' />;
|
||||
return <Component emoji={emoji.native} alt={emoji.colons} title={emoji.colons} className='emojione h-4 w-4' />;
|
||||
} else {
|
||||
return <Component src={emoji.imageUrl} alt={emoji.colons} className='emojione h-4 w-4' />;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user