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

Notify users of input validation with aria-live #1053

Open
shainanigans opened this issue Aug 9, 2022 · 0 comments
Open

Notify users of input validation with aria-live #1053

shainanigans opened this issue Aug 9, 2022 · 0 comments

Comments

@shainanigans
Copy link

Describe the bug
For the input validation, there should be an aria-live="assertive" on the validation message in cases where the message is added to the DOM/view. (There’s an example of this here from Deque.) With this attribute, screen readers will read this announcement to users when it appears. There is no mention of this in the Stacks documentation.

To Reproduce
Steps to reproduce the behavior:

  1. In Pickles (or any other SO4T instance) go to Questions, open the filter, and save a custom filter.
  2. Use a screen reader of your choosing to observe what happens when you change a filter and try to save another custom filter with the same name.
  3. Note that the validation message is not read out.

Expected behavior
Include a note in Inputs > Validation states about using aria-live.

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