Make WordPress Core


Ignore:
Timestamp:
11/20/2012 09:14:49 PM (11 years 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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.