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

Make the color picker saturation control work with windows screen readers #10807

Conversation

afercia
Copy link
Contributor

@afercia afercia commented Oct 19, 2018

Splitting this out from #10564

Description

Screen readers on Windows need to switch to "forms mode" on the saturation control to stop intercepting keystrokes and make the control work.

Adding a role="application" to the saturation control wrapper fixes it. Please consider role="application" must be used with caution and very sparingly, as it resets any native semantics and has other serious drawbacks; please always ask to the a11y team before using it.

Thinking better at what proposed in #10564 (comment) I now think there's no need for an aria-label on the div with role application, as it's not focusable and focus goes to the button instead.

How has this been tested?

I've tested on Windows without and with a screen reader running. Combos:

  • NVDA Firefox
  • NVDA IE11
  • JAWS Chrome
  • JAWS Firefox
  • JAWS IE11

Recommended: test on a real Windows machine, not on a VM running Windows, see #10564 (comment)

@afercia afercia added the [Focus] Accessibility (a11y) Changes that impact accessibility and need corresponding review (e.g. markup changes). label Oct 19, 2018
@afercia afercia requested a review from tofumatt October 19, 2018 16:52
@GlennMartin1
Copy link

Milestone 4.1?

Copy link
Member

@tofumatt tofumatt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks so much for this quick patch! There were a lot of improvements we can make here that I saw in the PR comments as future improvements and this one–which I see now is really straightforward–I must have mixed up with "follow-up enhancements". Thanks for getting this in quickly! 👍

@tofumatt tofumatt added this to the 4.1 - UI freeze milestone Oct 19, 2018
@afercia afercia merged commit 9d72785 into master Oct 19, 2018
@afercia afercia deleted the fix/make-color-picker-saturation-control-work-with-screen-readers branch October 19, 2018 18:06
antpb pushed a commit to antpb/gutenberg that referenced this pull request Oct 26, 2018
@afercia afercia mentioned this pull request Jan 23, 2019
4 tasks
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).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants