Skip to content

Commit dac6864

Browse files
committedJun 22, 2020
Deprecate the accessible-emoji rule
1 parent d4dfccb commit dac6864

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
 

‎docs/rules/accessible-emoji.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# accessible-emoji
1+
# [Deprecated] accessible-emoji
22

33
Emoji have become a common way of communicating content to the end user. To a person using a screenreader, however, he/she may not be aware that this content is there at all. By wrapping the emoji in a `<span>`, giving it the `role="img"`, and providing a useful description in `aria-label`, the screenreader will treat the emoji as an image in the accessibility tree with an accessible name for the end user.
44

‎src/rules/accessible-emoji.js

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ module.exports = {
2121
docs: {
2222
url: 'https://github.com/evcohen/eslint-plugin-jsx-a11y/tree/master/docs/rules/accessible-emoji.md',
2323
},
24+
deprecated: true,
2425
schema: [schema],
2526
},
2627

0 commit comments

Comments
 (0)