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

How should I announce validation errors via platform screen readers? #883

Open
TDuffinNTU opened this issue Sep 18, 2024 · 0 comments
Open

Comments

@TDuffinNTU
Copy link

Resource URL

https://www.w3.org/WAI/tutorials/forms/validation/

Description

Working on a flutter application, but this should be applicable for all platforms. We have validation errors that show up when the user attempts to submit a invalid form, or if they've missed something - How should screen readers such as Talkback, Voiceover, etc. handle these?

Options I've considered:

  1. Focus first invalid field, announce one (1) error only.
  2. Focus first invalid field, announce all (n) errors in order.
  3. Focus last invalid field, announce one (1) error only.
  4. Focus last/first invalid field, announce no errors.
  5. Focus last/first invalid field, show and focus a snackbar/error dialog.

It would be good to know what the "best practice" is so we can redesign the application around them, and assert that Flutter's framework meets these requirements. Thank you!

Resource Shortname

wai-tutorials

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

No branches or pull requests

1 participant