[wp-trac] [WordPress Trac] #31095: Fill in support for screen-reader-text class
WordPress Trac
noreply at wordpress.org
Wed Jan 21 23:48:58 UTC 2015
#31095: Fill in support for screen-reader-text class
---------------------------+-----------------------
Reporter: obenland | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.2
Component: Bundled Theme | Version:
Severity: normal | Keywords: has-patch
Focuses: accessibility |
---------------------------+-----------------------
Twenty Eleven and Twenty Twelve use custom classes for elements that are
meant for screen readers only.
Six years ago, r11312 introduced `.screen-reader-text` as a canonical
class name for text targeted to screen readers for all of core. Not only
for wp-admin, but also for the front-end through `get_search_form()`.
We should add this class name for forward compatibility with features
using this class, but also to make sure that child theme adding theme
support for HTML5 features are not caught off guard, when the existing
styles for assistive text doesn't apply.
This will also provide a great teaching opportunity for us, encouraging
theme authors to add styles for that class in themes that don't have it
already. We could do that both at the time this change goes in, and when
4.2 gets released.
This is a spin-off from discussions in #29699.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31095>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list