-
Notifications
You must be signed in to change notification settings - Fork 2.2k
[a11y]: Use aria-errormessage for invalid inputs #21247
Copy link
Copy link
Labels
component: text-areacomponent: text-inputneeds: community contributionDue to roadmap and resource availability, we are looking for outside contributions on this issue.Due to roadmap and resource availability, we are looking for outside contributions on this issue.package: @carbon/react@carbon/react@carbon/reactrole: dev 🤖severity: 3https://ibm.biz/carbon-severityhttps://ibm.biz/carbon-severitytype: a11y ♿type: bug 🐛
Metadata
Metadata
Assignees
Labels
component: text-areacomponent: text-inputneeds: community contributionDue to roadmap and resource availability, we are looking for outside contributions on this issue.Due to roadmap and resource availability, we are looking for outside contributions on this issue.package: @carbon/react@carbon/react@carbon/reactrole: dev 🤖severity: 3https://ibm.biz/carbon-severityhttps://ibm.biz/carbon-severitytype: a11y ♿type: bug 🐛
Type
Fields
Give feedbackSeverity
None yet
Projects
StatusShow more project fields
✅ Done
Package
@carbon/react
Browser
No response
Operating System
No response
Package version
1.97.0
React version
No response
Automated testing tool and ruleset
NA
Assistive technology
No response
Description
Carbon currently sets an
aria-describedbyto point to the error message generated from an invalid text input. I prefer if this usedaria-errormessageas described by https://w3c.github.io/aria/#aria-errormessage, as there are helpers in tools like playwright to write assertions against that aria field egWCAG 2.1 Violation
No response
Reproduction/example
N/A
Steps to reproduce
N/A
Suggested Severity
None
Code of Conduct