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

Associate input field with corresponding info messages for better a11y #1024

Merged
merged 3 commits into from
Nov 19, 2018

Conversation

praskovia-root
Copy link
Contributor

Adding aria-describedby attribute to input fields with reference to occasionally appearing info text element below the related field causes screen readers to read out input fields together with corresponding info text (mainly error notification, e.g. failed validation). This change matches 1.3.1 Info and Relationships success criterion of WCAG 2.
Without this connection the info underneath the input field is being read out separately and for screen reader users it may not be clear which input element this info belongs to.

…lity

- Validation error messages for input fields are linked to input fields via aria-describedby attribute to enable correct reading by screen reader
@miguelcobain miguelcobain merged commit 7548663 into miguelcobain:master Nov 19, 2018
@miguelcobain
Copy link
Owner

Looks good and more a11y PRs are also welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants