WordPress.org

Make WordPress Core

Changeset 42448


Ignore:
Timestamp:
01/15/2018 07:29:37 PM (21 months ago)
Author:
SergeyBiryukov
Message:

Themes: Improve line wrapping in feature filter on Theme Install screen and in the Customizer.

Props chetan200891 for initial patch.
Merges [42447] to the 4.9 branch.
Fixes #42871.

Location:
branches/4.9
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/4.9

  • branches/4.9/src/wp-admin/css/common.css

    r42190 r42448  
    11891189.filter-drawer .filter-group-feature input,
    11901190.filter-drawer .filter-group-feature label {
    1191     display: inline-block;
    1192     margin: 7px 4px 7px 0;
    11931191    line-height: 16px;
     1192}
     1193
     1194.filter-drawer .filter-group-feature input {
     1195    position: absolute;
     1196    margin: 0;
     1197}
     1198
     1199.filter-group .filter-group-feature label {
     1200    display: block;
     1201    margin: 14px 0px 14px 23px;
    11941202}
    11951203
     
    38903898    }
    38913899
     3900    .filter-drawer .filter-group-feature label {
     3901        margin-left: 32px;
     3902    }
     3903
    38923904    .wp-filter .button.drawer-toggle {
    38933905        font-size: 13px;
  • branches/4.9/src/wp-admin/theme-install.php

    r42003 r42448  
    208208                $feature = esc_attr( $feature );
    209209                echo '<input type="checkbox" id="filter-id-' . $feature . '" value="' . $feature . '" /> ';
    210                 echo '<label for="filter-id-' . $feature . '">' . $feature_name . '</label><br>';
     210                echo '<label for="filter-id-' . $feature . '">' . $feature_name . '</label>';
    211211            }
    212212            echo '</div>';
  • branches/4.9/src/wp-includes/customize/class-wp-customize-themes-section.php

    r42006 r42448  
    164164                            <?php foreach ( $features as $feature => $feature_name ) : ?>
    165165                                <input type="checkbox" id="filter-id-<?php echo esc_attr( $feature ); ?>" value="<?php echo esc_attr( $feature ); ?>" />
    166                                 <label for="filter-id-<?php echo esc_attr( $feature ); ?>"><?php echo esc_html( $feature_name ); ?></label><br>
     166                                <label for="filter-id-<?php echo esc_attr( $feature ); ?>"><?php echo esc_html( $feature_name ); ?></label>
    167167                            <?php endforeach; ?>
    168168                        </div>
Note: See TracChangeset for help on using the changeset viewer.