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

Change the inserter search results message to polite #13387

Closed
afercia opened this issue Jan 20, 2019 · 0 comments
Closed

Change the inserter search results message to polite #13387

afercia opened this issue Jan 20, 2019 · 0 comments
Labels
[Focus] Accessibility (a11y) Changes that impact accessibility and need corresponding review (e.g. markup changes). [Type] Enhancement A suggestion for improvement.

Comments

@afercia
Copy link
Contributor

afercia commented Jan 20, 2019

When opening the inserter, the number of initial available results is announced by assistive technologies via a speak() message sent to the assertive ARIA live region.

The assertive message interrupts what's currently being announced by the screen reader and, with some browser / screen reader combinations, this prevents the search field to be announced correctly.

In my testing, Safari + VoiceOver are affected. To reproduce:

  • using the keyboard, tab to the main inserter button
  • press Control Option Spacebar
  • the inserter opens, focus is moved to the search field
  • the search field label "Search for a block" is not announced
  • the number of results is announced almost immediately

screenshot 2019-01-20 at 17 01 53

Changing the message from assertive to polite fixes the issue and in my testing doesn't affect other browser / screen reader combos.

Worth noting this message is debounced by 500 ms and this might explain the different behavior across different combos. Also, screen readers have different ARIA live implementations. Regardless, it makes sense to let screen readers announce the search field first, and then the number of results.

@afercia afercia added [Type] Enhancement A suggestion for improvement. [Focus] Accessibility (a11y) Changes that impact accessibility and need corresponding review (e.g. markup changes). labels Jan 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Focus] Accessibility (a11y) Changes that impact accessibility and need corresponding review (e.g. markup changes). [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

1 participant