[material-ui][TextField] Attach aria-errormessage
attribute
#38929
Labels
accessibility
a11y
component: text field
This is the name of the generic UI component, not the React module!
enhancement
This is not a bug, nor a new feature
on hold
There is a blocker, we need to wait
package: material-ui
Specific to @mui/material
Duplicates
Latest version
Summary 💡
I noticed that the TextField component does not take advantage of the
aria-errormessage
attribute. In this exampleThe input that is rendered in the DOM has
aria-invalid="true"
andaria-describedby=":rl:-helper-text"
which points to<p id=":rl:-helper-text" ...>Must be at least 2 characters</p>
. It does not havearia-errormessage
attribute set. Please see https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-errormessageExamples 🌈
No response
Motivation 🔦
No response
The text was updated successfully, but these errors were encountered: