From 3982471a5c5d458269aebcba9222cf4a27d3c65e Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Thu, 22 Jan 2015 00:56:22 +0000 Subject: [PATCH] Twenty Eleven and Twelve: fill in support for `screen-reader-text` class. Props obenland, fixes #31095. Built from https://develop.svn.wordpress.org/trunk@31268 git-svn-id: http://core.svn.wordpress.org/trunk@31249 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentyeleven/style.css | 8 ++++++-- wp-content/themes/twentytwelve/style.css | 5 ++++- wp-includes/version.php | 2 +- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/wp-content/themes/twentyeleven/style.css b/wp-content/themes/twentyeleven/style.css index 5fc2f3d4aa..cfa696cd15 100644 --- a/wp-content/themes/twentyeleven/style.css +++ b/wp-content/themes/twentyeleven/style.css @@ -493,12 +493,16 @@ a:hover { } /* Assistive text */ -.assistive-text { +.assistive-text, +.screen-reader-text { position: absolute !important; clip: rect(1px 1px 1px 1px); /* IE6, IE7 */ clip: rect(1px, 1px, 1px, 1px); } -#access a.assistive-text:focus { +#access a.assistive-text:focus, +.screen-reader-text:hover, +.screen-reader-text:active, +.screen-reader-text:focus { background: #eee; border-bottom: 1px solid #ddd; color: #1982d1; diff --git a/wp-content/themes/twentytwelve/style.css b/wp-content/themes/twentytwelve/style.css index b131cc9e9c..a4a09daec7 100644 --- a/wp-content/themes/twentytwelve/style.css +++ b/wp-content/themes/twentytwelve/style.css @@ -507,7 +507,10 @@ a:hover { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); } -.main-navigation .assistive-text:focus { +.main-navigation .assistive-text:focus, +.site .screen-reader-text:hover, +.site .screen-reader-text:active, +.site .screen-reader-text:focus { background: #fff; border: 2px solid #333; border-radius: 3px; diff --git a/wp-includes/version.php b/wp-includes/version.php index 339f60beee..47c600cb5c 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.2-alpha-31267'; +$wp_version = '4.2-alpha-31268'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.