WordPress.org

Make WordPress Core

Changeset 22730


Ignore:
Timestamp:
11/20/12 21:14:49 (17 months ago)
Author:
azaozz
Message:

Skip To links: visually hide by only setting top: -1000em; (this should make them work well in all screen readers), fixes #21312

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-header.php

    r22249 r22730  
    111111 
    112112<div id="wpwrap"> 
    113 <a tabindex="1" href="#wpbody-content" class="screen-reader-text screen-reader-shortcut"><?php _e('Skip to main content'); ?></a> 
     113<a tabindex="1" href="#wpbody-content" class="screen-reader-shortcut"><?php _e('Skip to main content'); ?></a> 
    114114<?php require(ABSPATH . 'wp-admin/menu-header.php'); ?> 
    115115<div id="wpcontent"> 
  • trunk/wp-admin/css/wp-admin.css

    r22727 r22730  
    198198    width: 1px; 
    199199    overflow: hidden; 
     200} 
     201 
     202.screen-reader-shortcut { 
     203    position: absolute; 
     204    top: -1000em; 
    200205} 
    201206 
  • trunk/wp-includes/class-wp-admin-bar.php

    r22249 r22730  
    349349        ?> 
    350350        <div id="wpadminbar" class="<?php echo $class; ?>" role="navigation"> 
    351             <a class="screen-reader-text screen-reader-shortcut" href="#wp-toolbar" tabindex="1"><?php _e('Skip to toolbar'); ?></a> 
     351            <a class="screen-reader-shortcut" href="#wp-toolbar" tabindex="1"><?php _e('Skip to toolbar'); ?></a> 
    352352            <div class="quicklinks" id="wp-toolbar" role="navigation" aria-label="<?php esc_attr_e('Top navigation toolbar.'); ?>" tabindex="0"> 
    353353                <?php foreach ( $root->children as $group ) { 
     
    355355                } ?> 
    356356            </div> 
    357             <a class="screen-reader-text screen-reader-shortcut" href="<?php echo esc_url( wp_logout_url() ); ?>"><?php _e('Log Out'); ?></a> 
     357            <a class="screen-reader-shortcut" href="<?php echo esc_url( wp_logout_url() ); ?>"><?php _e('Log Out'); ?></a> 
    358358        </div> 
    359359 
  • trunk/wp-includes/css/admin-bar.css

    r22727 r22730  
    624624    width: 1px; 
    625625    overflow: hidden; 
     626} 
     627 
     628#wpadminbar .screen-reader-shortcut { 
     629    position: absolute; 
     630    top: -1000em; 
    626631} 
    627632 
Note: See TracChangeset for help on using the changeset viewer.