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

Autocomplete's aria-live region should clear itself out so it can't be navigated to #18

Open
WestonThayer opened this issue Apr 29, 2020 · 2 comments

Comments

@WestonThayer
Copy link

This happens in any screen reader. For example, with NVDA + Firefox:

  1. Go to https://nostyle.herokuapp.com/examples/autocomplete
  2. Tab to the control to focus it and type "states"
  3. Use NVDA + SPACE to switch out of forms mode and into browse mode
  4. Press ARROW_DOWN. Virtual cursor will be moved to the little dropdown arrow, which announces as "clickable" (could be an issue in and of itself)
  5. Press ARROW_DOWN again

Virtual cursor is moved to the hidden aria-live region, where user hears "3 results".

screenshot of NVDA focus highlight

This can be fixed by clearing out the contents of the aria-live region 500ms after it's been added.

@WestonThayer
Copy link
Author

Also, sorry if you're not looking for issues yet! Your awesome library was linked to in the web-a11y Slack. I was totally impressed by autocomplete!

@adamsilver
Copy link
Owner

Thanks a lot for this @WestonThayer

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

No branches or pull requests

2 participants