Make WordPress Core

Changeset 21452


Ignore:
Timestamp:
08/06/2012 12:34:44 AM (12 years ago)
Author:
azaozz
Message:

Accessibility: add off-screen Log Out link in the toolbar, tweak the class names of the accessible links in #adminbar, see #21312

Location:
trunk/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-admin-bar.php

    r21423 r21452  
    349349        ?>
    350350        <div id="wpadminbar" class="<?php echo $class; ?>" role="navigation">
    351             <a id="wpadminbar-shortcut" href="#wp-toolbar" tabindex="1"><?php _e('Skip to toolbar'); ?></a>
     351            <a class="screen-reader-text 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.'); ?>">
    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>
    357358        </div>
    358359
  • trunk/wp-includes/css/admin-bar.dev.css

    r21439 r21452  
    602602
    603603/* Skip link */
    604 #wpadminbar #wpadminbar-shortcut,
    605604#wpadminbar .screen-reader-text,
    606605#wpadminbar .screen-reader-text span {
     
    613612}
    614613
    615 #wpadminbar #wpadminbar-shortcut:focus {
     614#wpadminbar .screen-reader-shortcut:focus {
    616615    left: 5px;
    617616    top: 5px;
     
    629628}
    630629
     630#wpadminbar a.screen-reader-shortcut {
     631    text-decoration: underline;
     632}
     633
    631634/**
    632635 * IE 6-targeted rules
Note: See TracChangeset for help on using the changeset viewer.