Skip to content

Commit

Permalink
Twenty Eleven and Twelve: fill in support for screen-reader-text cl…
Browse files Browse the repository at this point in the history
…ass.

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
  • Loading branch information
lancewillett committed Jan 22, 2015
1 parent 87279ec commit 3982471
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
8 changes: 6 additions & 2 deletions wp-content/themes/twentyeleven/style.css
Expand Up @@ -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;
Expand Down
5 changes: 4 additions & 1 deletion wp-content/themes/twentytwelve/style.css
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion wp-includes/version.php
Expand Up @@ -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.
Expand Down

0 comments on commit 3982471

Please sign in to comment.