[wp-trac] [WordPress Trac] #20491: Introduce some JavaScript i18n functions
WordPress Trac
noreply at wordpress.org
Tue Jul 7 13:43:57 UTC 2020
#20491: Introduce some JavaScript i18n functions
--------------------------------------+-----------------------------------
Reporter: johnbillion | Owner: swissspidy
Type: enhancement | Status: closed
Priority: normal | Milestone: 5.0
Component: I18N | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses: javascript, rest-api
--------------------------------------+-----------------------------------
Comment (by afercia):
In [changeset:"48375" 48375]:
{{{
#!CommitTicketReference repository="" revision="48375"
Accessibility: Media: Improve accessibility of the status and error
messages in the Image Editor.
- improves focus management by moving focus to the notices, if any, or to
the first "tabbable" element
- this avoids a focus loss and helps Braille-only and screen magnification
users to be aware of the messages
- adds an ARIA role `alert` to all the notices
- uses `wp.a11y.speak()` to announce messages to assistive technology
- this way, all visual users will see the messages while assistive
technology users will get an audible message
- uses `wp.i18n` for translatable strings in `wp-admin/js/image-edit.js`
Props anevins, ryanshoover, antpb, SergeyBiryukov, afercia.
See #20491.
Fixes #47147.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/20491#comment:100>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list