[wp-trac] [WordPress Trac] #47156: Consider a way to clear the wp.a11y.speak() live regions
WordPress Trac
noreply at wordpress.org
Mon May 6 19:59:12 UTC 2019
#47156: Consider a way to clear the wp.a11y.speak() live regions
---------------------------------------+-----------------------------
Reporter: afercia | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version:
Severity: normal | Keywords: has-screenshots
Focuses: accessibility, javascript |
---------------------------------------+-----------------------------
Splitting this out from the WPCamput/Tenon accessibility report, see
https://github.com/WordPress/gutenberg/issues/15296. See also #47144.
When `wp.a11y.speak()` is used to make screen readers announce a message,
it updates the content of the visually hidden ARIA live regions placed at
the end of the page source.
In most of the cases this is not a problem but, when screen reader users
continue to navigate the page content by arrowing, they may encounter
again the text that was previously announced, because this text is
perceived as normal content by assistive technologies.
Ideally, there should be a way to clear the ARIA live regions before users
get to them by arrowing. This aw also the feedback from the WPCampus
report:
> clear the live region so that users who encounter it while manually
reading do not hear it.
However, clearing the live regions shouldn't depend on a specific user
action or scenario. It would require a more generic solution, preferably
avoiding `setTimeout()` which seems to me a very fragile solution by its
own nature.
This applies to the a11y JavaScript package as well.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47156>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list