# accessible-emoji

Rule `jsx-a11y/accessible-emoji`. Enforce emojis are wrapped in `<span>` and provide screen reader access.

- Source: jsx-a11y
- Technologies: Accessibility, React
- Kind: style
- Needs type information: no
- Autofix: no
- Deprecated: yes
- Reach: 0 weekly downloads of presets that enable it
- Trend: 0% last quarter
- Rank: #1892 by reach

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `jsx-a11y/accessible-emoji` | no | no | package `eslint-plugin-jsx-a11y` | [docs](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/accessible-emoji.md) |

## Code examples

### Incorrect: the rule reports this

```jsx
<span>🐼</span>
<i role="img" aria-label="Panda">🐼</i>
```

### Correct: the rule accepts this

```jsx
<span role="img" aria-label="Snowman">&#9731;</span>
<span role="img" aria-label="Panda">🐼</span>
<span role="img" aria-labelledby="panda1">🐼</span>
```

Examples from the ESLint documentation.

## Enable it

### ESLint: `eslint.config.js`

```js
import jsxA11y from "eslint-plugin-jsx-a11y";

export default [
  {
    plugins: { "jsx-a11y": jsxA11y },
    rules: {
      "jsx-a11y/accessible-emoji": "error",
    },
  },
];
```

## Related rules

- [jsx-a11y/control-has-associated-label](https://lintradar.dev/rules/jsx-a11y/control-has-associated-label.md): Enforce that a control (an interactive element) has a text label.
- [jsx-a11y/prefer-tag-over-role](https://lintradar.dev/rules/jsx-a11y/prefer-tag-over-role.md): Enforces using semantic DOM elements over the ARIA `role` property.
- [jsx-a11y/no-aria-hidden-on-focusable](https://lintradar.dev/rules/jsx-a11y/no-aria-hidden-on-focusable.md): Disallow `aria-hidden="true"` from being set on focusable elements.
- [jsx-a11y/anchor-ambiguous-text](https://lintradar.dev/rules/jsx-a11y/anchor-ambiguous-text.md): Enforce `<a>` text to not exactly match "click here", "here", "link", or "a link".
- [jsx-a11y/lang](https://lintradar.dev/rules/jsx-a11y/lang.md): Enforce lang attribute has a valid value.
- [jsx-a11y/no-noninteractive-element-interactions](https://lintradar.dev/rules/jsx-a11y/no-noninteractive-element-interactions.md): Non-interactive elements should not be assigned mouse or keyboard event listeners.

---

Web page: https://lintradar.dev/rules/jsx-a11y/accessible-emoji. Data from npm and the linters' documentation, collected Dec 4, 2026. Site guide for agents: https://lintradar.dev/llms.txt
