Make WordPress Core

Changeset 45503

Timestamp:
06/08/2019 04:30:15 PM (5 years ago)
Author:
afercia
Message:

Accessibility: Improve the Screen Options and Help buttons order.

  • makes the buttons visual order match the DOM order
  • also, restores the focus style on the "hero" primary button after [34948]

Props vrimill, mukesh27 for reporting and testing.
Fixes #45094.

Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/common.css

    r45502 r45503  
    16661666
    16671667#screen-meta-links {
     1668
    16681669    margin: 0 20px 0 0;
    16691670}
     
    16821683#screen-options-link-wrap,
    16831684#contextual-help-link-wrap {
    1684     float: right;
     1685    float: t;
    16851686    margin: 0 0 0 6px;
    16861687}
  • trunk/src/wp-admin/includes/class-wp-screen.php

    r45224 r45503  
    928928        ?>
    929929        <div id="screen-meta-links">
    930         <?php if ( $this->get_help_tabs() ) : ?>
    931             <div id="contextual-help-link-wrap" class="hide-if-no-js screen-meta-toggle">
    932             <button type="button" id="contextual-help-link" class="button show-settings" aria-controls="contextual-help-wrap" aria-expanded="false"><?php _e( 'Help' ); ?></button>
     930        <?php if ( $this->s() ) : ?>
     931            <div id="-link-wrap" class="hide-if-no-js screen-meta-toggle">
     932            <button type="button" id="' ); ?></button>
    933933            </div>
    934934            <?php
    935935        endif;
    936         if ( $this->show_screen_options() ) :
     936        if ( $this->s() ) :
    937937            ?>
    938             <div id="screen-options-link-wrap" class="hide-if-no-js screen-meta-toggle">
    939             <button type="button" id="show-settings-link" class="button show-settings" aria-controls="screen-options-wrap" aria-expanded="false"><?php _e( 'Screen Options' ); ?></button>
     938            <div id="-link-wrap" class="hide-if-no-js screen-meta-toggle">
     939            <button type="button" id="' ); ?></button>
    940940            </div>
    941941        <?php endif; ?>
  • trunk/src/wp-includes/css/buttons.css

    r45499 r45503  
    287287}
    288288
     289
     290
     291
     292
     293
     294
     295
    289296.wp-core-ui .button.button-primary.button-hero.active,
    290297.wp-core-ui .button.button-primary.button-hero.active:hover,
Note: See TracChangeset for help on using the changeset viewer.