Make WordPress Core

Ticket #33646: 33646.3.patch

File 33646.3.patch, 3.5 KB (added by afercia, 10 years ago)
  • src/wp-admin/css/common.css

     
    15251525        background-position: bottom left;
    15261526}
    15271527
    1528 #screen-options-wrap h5,
     1528#screen-options-wrap legend,
    15291529#contextual-help-wrap h5 {
    1530         margin: 8px 0;
     1530        margin: 0;
     1531        padding: 8px 0;
    15311532        font-size: 13px;
     1533        font-weight: 600;
    15321534}
    15331535
    15341536.metabox-prefs label {
     
    15371539        line-height: 30px;
    15381540}
    15391541
     1542#number-of-columns {
     1543        display: inline-block;
     1544        vertical-align: middle;
     1545        line-height: 30px;
     1546}
     1547
    15401548.metabox-prefs label input[type=checkbox] {
    15411549        margin-top: -4px;
    15421550        margin-right: 6px;
  • src/wp-admin/css/customize-nav-menus.css

     
    349349        display: none;
    350350        background: #fff;
    351351        border-top: 1px solid #ddd;
    352         padding: 4px 15px 0;
     352        padding: 4px 15px 15px;
    353353}
    354354
    355355.wp-customizer .metabox-prefs label {
  • src/wp-admin/includes/class-wp-screen.php

     
    907907                <?php endif; ?>
    908908                <form id="adv-settings" method="post">
    909909                <?php if ( isset( $wp_meta_boxes[ $this->id ] ) || $this->get_option( 'per_page' ) || ( $columns && empty( $columns['_title'] ) ) ) : ?>
    910                         <h5><?php _e( 'Show on screen' ); ?></h5>
     910                        <fieldset>
     911                                <legend><?php _e( 'Show on screen' ); ?></legend>
    911912                <?php
    912913                endif;
    913914
     
    930931                                                echo _x( 'Welcome', 'Welcome panel' ) . "</label>\n";
    931932                                        }
    932933                                ?>
    933                                 <br class="clear" />
    934934                        </div>
    935935                        <?php endif;
    936936                        if ( $columns ) :
    937937                                if ( ! empty( $columns['_title'] ) ) : ?>
    938                         <h5><?php echo $columns['_title']; ?></h5>
     938                        <fieldset>
     939                                <legend><?php echo $columns['_title']; ?></legend>
    939940                        <?php endif; ?>
    940941                        <div class="metabox-prefs">
    941942                                <?php
     
    956957                                        echo "$title</label>\n";
    957958                                }
    958959                                ?>
    959                                 <br class="clear" />
    960960                        </div>
     961                        <?php if ( ! empty( $columns['_title'] ) ) : ?>
     962                        </fieldset>
     963                        <?php endif; ?>
    961964                <?php endif;
    962965
     966                if ( isset( $wp_meta_boxes[ $this->id ] ) || $this->get_option( 'per_page' ) || ( $columns && empty( $columns['_title'] ) ) ) : ?>
     967                        </fieldset>
     968                <?php endif;
    963969                $this->render_screen_layout();
    964970                $this->render_per_page_options();
    965971                echo $this->_screen_settings;
     
    985991                $num = $this->get_option( 'layout_columns', 'max' );
    986992
    987993                ?>
    988                 <h5 class="screen-layout"><?php _e('Screen Layout'); ?></h5>
    989                 <div class='columns-prefs'><?php
    990                         _e('Number of Columns:');
    991                         for ( $i = 1; $i <= $num; ++$i ):
    992                                 ?>
     994                <fieldset>
     995                <legend class="screen-layout"><?php _e( 'Screen Layout' ); ?></legend>
     996                <div class='columns-prefs'>
     997                        <span id='number-of-columns'><?php _e( 'Number of Columns:' ); ?></span>
     998                        <?php for ( $i = 1; $i <= $num; ++$i ): ?>
    993999                                <label class="columns-prefs-<?php echo $i; ?>">
    994                                         <input type='radio' name='screen_columns' value='<?php echo esc_attr( $i ); ?>'
    995                                                 <?php checked( $screen_layout_columns, $i ); ?> />
     1000                                        <input type="radio" name="screen_columns" aria-describedby="number-of-columns" value="<?php echo esc_attr( $i ); ?>" <?php checked( $screen_layout_columns, $i ); ?> />
    9961001                                        <?php echo esc_html( $i ); ?>
    9971002                                </label>
    998                                 <?php
    999                         endfor; ?>
     1003                        <?php endfor; ?>
    10001004                </div>
     1005                </fieldset>
    10011006                <?php
    10021007        }
    10031008