Add aria attribute to emojis #1325
-
Currently emoji characters do not provide any labels for keyboard users. Is there a way to add an |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Sure, just add the aria label to either the emoji itself or surround it by a separate tag. Just as you would do with the icons <a aria-label="Delete" class="btn btn-danger" href="path/to/settings">
<em aria-hidden="true" data-emoji=":sad:" title="Delete this item?"></em>
</a> |
Beta Was this translation helpful? Give feedback.
-
FontAwesome icons already have a built in aria-label is my point. I was hoping for this support to be added without having to manually add a label for each character. |
Beta Was this translation helpful? Give feedback.
-
Fomantic does currently only provide the pure CSS for emojis tags and no js module for html tag creation, so you would have to add the desired aria labels as html attributes by yourself. |
Beta Was this translation helpful? Give feedback.
Fomantic does currently only provide the pure CSS for emojis tags and no js module for html tag creation, so you would have to add the desired aria labels as html attributes by yourself.