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

Form errors are not read by the screen reader #784

Closed
aphelionz opened this issue May 6, 2018 · 2 comments
Closed

Form errors are not read by the screen reader #784

aphelionz opened this issue May 6, 2018 · 2 comments
Labels
accessibility - WCAG A Level A WCAG Accessibility Criteria accessibility

Comments

@aphelionz
Copy link
Contributor

Steps to reproduce (assumes ChromeVox or similar)

image

  1. Open https://elastic.github.io/eui/#/forms/form-validation in a new tab.
  2. Tab to the first (or any) field with an error indicator

Actual Result

The textarea is read as if it were a normal text area with no indicators

Expected Result

"text input error" at a minimum, "text input [informative error message]" would be ideal

Category: #781: Elastic UI Form Validation Accessibility
Relevant WCAG Criteria: 3.3.1 Error Identification

@aphelionz aphelionz added accessibility accessibility - WCAG A Level A WCAG Accessibility Criteria labels May 6, 2018
@timroes
Copy link
Contributor

timroes commented May 7, 2018

That's weird that they are not read out at all for you, because they are aria-describedby to the input field. Also the input field is in an invalid state, so VoiceOver usually at least reads out "invalid" to it.

Nevertheless in my opinion we should add aria-errormessage to the input element that reference the error messages (even though that is not yet supported by all screen readers). And use aria-describedby only for the actual description text.

@aphelionz
Copy link
Contributor Author

"Invalid" technically passes, but is next to nothing in terms of helpful, operable feedback to a non-sighted user

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility - WCAG A Level A WCAG Accessibility Criteria accessibility
Projects
None yet
Development

No branches or pull requests

3 participants