Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Accessibility: Communicate AJAX enabling/disabling changes to screen readers #85

Merged
merged 1 commit into from
Apr 21, 2020

Conversation

audrasjb
Copy link
Contributor

@audrasjb audrasjb commented Apr 21, 2020

This PR usess wp.a11y.speak to communicate action links AJAX changes to screen reader users.
Fixes #84

7ecd6a68391c5c53fbfc8e2aeb92bb27

@audrasjb audrasjb added bug Something isn't working a11y Accessibility labels Apr 21, 2020
@audrasjb audrasjb added this to the 0.6.0 milestone Apr 21, 2020
@audrasjb audrasjb self-assigned this Apr 21, 2020
Copy link
Contributor

@pbiron pbiron left a comment

Choose a reason for hiding this comment

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

I don't have a screen reader to test this with, but it basically looks good.

One question: shiny updates does wp.a11y.speak() when the update starts in addition to one when it has completed. Given how quickly the enable/disable happens we probably don't need the first one, but just wanted to ask.

@audrasjb
Copy link
Contributor Author

Yes, you're right @pbiron. I tried both and I think it's not appropriate here, as the change is really quick, so I don't want to burden users with unnecessary notices 🙂

@audrasjb
Copy link
Contributor Author

Merging this pull request right now :)

@audrasjb audrasjb merged commit 4223e42 into master Apr 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a11y Accessibility bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AJAX enabling/disabling: Accessibility: render changes to screen readers
2 participants