[Chip] Disabled a11y regression in MUIv5 #30012
Labels
component: chip
This is the name of the generic UI component, not the React module!
support: question
Community support but can be turned into an improvement
Duplicates
Latest version
Current behavior 😯
In updating to Material-UI v5.2.2 (from v5.0.6) I have noticed what appears to be a regression related to accessibility in the
<Chip>
component. It looks like the underlying<div><span>
created by the component only designates the component as disabled via CSS class.Mui-disabled
.This does not pass an automated a11y test using Jest's
expect(chipComponent).toHaveAttribute("aria-disabled");
Expected behavior 🤔
Previously (last tested MUIv5.0.6 & v4.12.2), a disabled
<Chip>
component was marked disabled using the accessiblearia-disabled
attributeSteps to reproduce 🕹
Steps:
(Tested in Jest tests and in latest Chrome browser on MacOS)
<Chip disabled .../>
aria-disabled="true"
attributearia-disabled="true"
attributeContext 🔦
I am using Chip components to display some status information and need to differentiate some information as disabled. I need this to be accessible so it's clear to all users what is applicable or not.
Note: These are Basic informational/non-interactive Chips, I am not using actions, deletion, etc.
Your environment 🌎
`npx @mui/envinfo`
The text was updated successfully, but these errors were encountered: