mui / mui/material-ui

[chip] Chip with `onDelete` is not accessible

Open
#46,753 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

accessibility scope: chip
Dominant language
JavaScript
Stars
99.1k
Forks
32.5k
Avg merge
2d 17h
Merged PRs (30d)
106

Description

Steps to reproduce

Steps:

  1. Open this link to live example: https://mui.com/material-ui/react-chip/#deletable
  2. Inspect the a deletable chip in the DOM.
  3. Check for aria-label or any accessible name on the chip.
Current behavior

The deletable chip has no aria-label.

Expected behavior

The delete icon button should have an aria-label that clearly indicates that activating it will delete the chip.

Context

No response

Your environment
npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

Search keywords: Chip

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Use the Chip component implementation behind the deletable example at https://mui.com/material-ui/react-chip/#deletable as the entry point. Inspect the delete icon button and verify in the live example that it exposes a clear accessible name indicating deletion.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
accessibility, frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.