Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting error-visible should also set aria-invalid and potentially aria-errormessage #2428

Open
m-akinc opened this issue Oct 2, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@m-akinc
Copy link
Contributor

m-akinc commented Oct 2, 2024

🐛 Bug Report

The error-visible attribute controls the presentational aspect of a component being in an error state. Besides the visual aspects of that presentation, it should also manage the ARIA attributes to communicate that accessibly.

💁 Possible Solution

  • set aria-invalid="true" on the accessible element when error-visible is set on the host element
  • if error-visible is set and error-text is non-empty, set aria-errormessage to the id of the element with the error text
  • possibly set aria-live on the error text element

🔦 Context

Came up during research for the required input feature. See #2425 (comment)

@m-akinc m-akinc added bug Something isn't working triage New issue that needs to be reviewed labels Oct 2, 2024
@m-akinc m-akinc removed the triage New issue that needs to be reviewed label Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Defined/Ready to Pickup
Development

No branches or pull requests

1 participant