WordPress.org

Make WordPress Core

Changeset 31268


Ignore:
Timestamp:
01/22/2015 12:55:09 AM (6 years ago)
Author:
lancewillett
Message:

Twenty Eleven and Twelve: fill in support for screen-reader-text class.

Props obenland, fixes #31095.

Location:
trunk/src/wp-content/themes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyeleven/style.css

    r30967 r31268  
    494494
    495495/* Assistive text */
    496 .assistive-text {
     496.assistive-text,
     497.screen-reader-text {
    497498    position: absolute !important;
    498499    clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
    499500    clip: rect(1px, 1px, 1px, 1px);
    500501}
    501 #access a.assistive-text:focus {
     502#access a.assistive-text:focus,
     503.screen-reader-text:hover,
     504.screen-reader-text:active,
     505.screen-reader-text:focus {
    502506    background: #eee;
    503507    border-bottom: 1px solid #ddd;
  • trunk/src/wp-content/themes/twentytwelve/style.css

    r30967 r31268  
    508508    clip: rect(1px, 1px, 1px, 1px);
    509509}
    510 .main-navigation .assistive-text:focus {
     510.main-navigation .assistive-text:focus,
     511.site .screen-reader-text:hover,
     512.site .screen-reader-text:active,
     513.site .screen-reader-text:focus {
    511514    background: #fff;
    512515    border: 2px solid #333;
Note: See TracChangeset for help on using the changeset viewer.