WordPress.org

Make WordPress Core

Changeset 42447


Ignore:
Timestamp:
01/15/2018 07:26:47 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.
Fixes #42871.

Location:
trunk/src
Files:
3 edited

Legend:

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

    r42189 r42447  
    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;
  • trunk/src/wp-admin/theme-install.php

    r42343 r42447  
    215215                $feature = esc_attr( $feature );
    216216                echo '<input type="checkbox" id="filter-id-' . $feature . '" value="' . $feature . '" /> ';
    217                 echo '<label for="filter-id-' . $feature . '">' . $feature_name . '</label><br>';
     217                echo '<label for="filter-id-' . $feature . '">' . $feature_name . '</label>';
    218218            }
    219219            echo '</div>';
  • trunk/src/wp-includes/customize/class-wp-customize-themes-section.php

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