Make WordPress Core

Changeset 62602


Ignore:
Timestamp:
06/30/2026 08:14:22 PM (7 weeks ago)
Author:
joedolson
Message:

Admin Reskin: Fix mobile list table control heights.

On the mobile admin viewport, interactive elements on list table pages had inconsistent heights. Give them a consistent height.

Follow-up to [61645].

Reviewed by joedolson.
Merges [62400] to the 7.0 branch.

Props andrewssanya, sainathpoojary, wildworks.
See #64999.

Location:
branches/7.0
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • branches/7.0

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

    r62561 r62602  
    18751875        border-top: none;
    18761876        height: auto;
    1877         min-height: 32px; /* Compact size for header buttons */
    18781877        margin-bottom: 0;
    18791878        padding: 0 6px 0 16px;
     
    18811880        border-radius: 0 0 4px 4px;
    18821881        color: #646970;
    1883         line-height: 2.30769231; /* 30px - matches compact button */
    18841882        box-shadow: 0 0 0 transparent;
    18851883        transition: box-shadow 0.1s linear;
     
    42794277        }
    42804278
     4279        #screen-meta-links .show-settings:after {
     4280                line-height: 1.9;
     4281        }
     4282
    42814283        .wp-filter .search-form input[type="search"] {
    42824284                font-size: 1rem;
  • branches/7.0/src/wp-admin/css/forms.css

    r62274 r62602  
    523523#post-query-submit {
    524524        margin: 0 8px 0 0;
    525         min-height: 32px;
    526         line-height: 2.30769231; /* 30px for 32px height with 13px font */
    527         padding: 0 12px;
    528525}
    529526
     
    17581755        }
    17591756
     1757        .wp-core-ui .tablenav input[type="text"],
     1758        .wp-core-ui .tablenav input[type="password"],
     1759        .wp-core-ui .tablenav input[type="date"],
     1760        .wp-core-ui .tablenav input[type="datetime"],
     1761        .wp-core-ui .tablenav input[type="datetime-local"],
     1762        .wp-core-ui .tablenav input[type="email"],
     1763        .wp-core-ui .tablenav input[type="month"],
     1764        .wp-core-ui .tablenav input[type="number"],
     1765        .wp-core-ui .tablenav input[type="search"],
     1766        .wp-core-ui .tablenav input[type="tel"],
     1767        .wp-core-ui .tablenav input[type="time"],
     1768        .wp-core-ui .tablenav input[type="url"],
     1769        .wp-core-ui .tablenav input[type="week"],
     1770        .wp-core-ui .tablenav select {
     1771                min-height: 40px;
     1772        }
     1773
     1774        .wp-core-ui .tablenav .button {
     1775                min-height: 40px;
     1776                line-height: 2.71428571;
     1777                padding: 0 14px;
     1778        }
     1779
    17601780        p.search-box {
    17611781                float: none;
     
    17741794                width: 100%;
    17751795                margin-bottom: 0;
     1796        }
     1797
     1798        p.search-box input[type="search"],
     1799        p.search-box input[type="text"] {
     1800                min-height: 40px;
    17761801        }
    17771802
  • branches/7.0/src/wp-admin/css/list-tables.css

    r62338 r62602  
    19421942        .tablenav .tablenav-pages .button,
    19431943        .tablenav .tablenav-pages .tablenav-pages-navspan {
    1944                 min-width: 44px;
    1945                 padding: 12px 8px;
     1944                min-width: 40px;
     1945                min-height: 40px;
     1946                padding: 10px 8px;
    19461947                font-size: 18px;
    19471948                line-height: 1;
     
    19491950
    19501951        .tablenav-pages .pagination-links .current-page {
    1951                 min-width: 44px;
    1952                 padding: 12px 6px;
     1952                min-width: 40px;
     1953                padding: 10px 6px;
    19531954                font-size: 16px;
    19541955                line-height: 1.125;
     
    21782179        }
    21792180
     2181        .inline-edit-row select,
     2182        .inline-edit-row input:where(:not([type=checkbox],[type=radio],[type=submit],[type=button])) {
     2183                min-height: 40px;
     2184        }
     2185
    21802186        .inline-edit-row fieldset input[name=jj],
    21812187        .inline-edit-row fieldset input[name=hh],
  • branches/7.0/src/wp-admin/includes/class-wp-comments-list-table.php

    r62331 r62602  
    443443                        if ( ! empty( $output ) && $this->has_items() ) {
    444444                                echo $output;
    445                                 submit_button( __( 'Filter' ), '', 'filter_action', false, array( 'id' => 'post-query-submit' ) );
     445                                submit_button( __( 'Filter' ), 'button-compact', 'filter_action', false, array( 'id' => 'post-query-submit' ) );
    446446                        }
    447447                }
  • branches/7.0/src/wp-admin/includes/class-wp-links-list-table.php

    r61657 r62602  
    124124                        wp_dropdown_categories( $dropdown_options );
    125125
    126                         submit_button( __( 'Filter' ), '', 'filter_action', false, array( 'id' => 'post-query-submit' ) );
     126                        submit_button( __( 'Filter' ), 'button-compact', 'filter_action', false, array( 'id' => 'post-query-submit' ) );
    127127                        ?>
    128128                </div>
  • branches/7.0/src/wp-admin/includes/class-wp-list-table.php

    r61657 r62602  
    405405        <label class="screen-reader-text" for="<?php echo esc_attr( $input_id ); ?>"><?php echo $text; ?>:</label>
    406406        <input type="search" id="<?php echo esc_attr( $input_id ); ?>" name="s" value="<?php _admin_search_query(); ?>" />
    407                 <?php submit_button( $text, '', '', false, array( 'id' => 'search-submit' ) ); ?>
     407                <?php submit_button( $text, 'button-compact', '', false, array( 'id' => 'search-submit' ) ); ?>
    408408</p>
    409409                <?php
     
    621621                echo "</select>\n";
    622622
    623                 submit_button( __( 'Apply' ), 'action', 'bulk_action', false, array( 'id' => "doaction$two" ) );
     623                submit_button( __( 'Apply' ), 'action button-compact', 'bulk_action', false, array( 'id' => "doaction$two" ) );
    624624                echo "\n";
    625625        }
  • branches/7.0/src/wp-admin/includes/class-wp-media-list-table.php

    r61790 r62602  
    243243                        do_action( 'restrict_manage_posts', $this->screen->post_type, $which );
    244244
    245                         submit_button( __( 'Filter' ), '', 'filter_action', false, array( 'id' => 'post-query-submit' ) );
     245                        submit_button( __( 'Filter' ), 'button-compact', 'filter_action', false, array( 'id' => 'post-query-submit' ) );
    246246
    247247                        if ( $this->is_trash && $this->has_items()
  • branches/7.0/src/wp-admin/includes/class-wp-posts-list-table.php

    r62355 r62602  
    597597                        if ( ! empty( $output ) ) {
    598598                                echo $output;
    599                                 submit_button( __( 'Filter' ), '', 'filter_action', false, array( 'id' => 'post-query-submit' ) );
     599                                submit_button( __( 'Filter' ), 'button-compact', 'filter_action', false, array( 'id' => 'post-query-submit' ) );
    600600                        }
    601601                }
  • branches/7.0/src/wp-admin/includes/class-wp-screen.php

    r62269 r62602  
    970970                <?php if ( $this->show_screen_options() ) : ?>
    971971                        <div id="screen-options-link-wrap" class="hide-if-no-js screen-meta-toggle">
    972                         <button type="button" id="show-settings-link" class="button show-settings" aria-controls="screen-options-wrap" aria-expanded="false"><?php _e( 'Screen Options' ); ?></button>
     972                        <button type="button" id="show-settings-link" class="button button-compact show-settings" aria-controls="screen-options-wrap" aria-expanded="false"><?php _e( 'Screen Options' ); ?></button>
    973973                        </div>
    974974                        <?php
     
    977977                        ?>
    978978                        <div id="contextual-help-link-wrap" class="hide-if-no-js screen-meta-toggle">
    979                         <button type="button" id="contextual-help-link" class="button show-settings" aria-controls="contextual-help-wrap" aria-expanded="false"><?php _e( 'Help' ); ?></button>
     979                        <button type="button" id="contextual-help-link" class="button button-compact show-settings" aria-controls="contextual-help-wrap" aria-expanded="false"><?php _e( 'Help' ); ?></button>
    980980                        </div>
    981981                <?php endif; ?>
  • branches/7.0/src/wp-admin/includes/media.php

    r61841 r62602  
    29052905                <?php } ?>
    29062906
    2907                 <?php submit_button( __( 'Filter &#187;' ), '', 'post-query-submit', false ); ?>
     2907                <?php submit_button( __( 'Filter &#187;' ), 'button-compact', 'post-query-submit', false ); ?>
    29082908
    29092909        </div>
Note: See TracChangeset for help on using the changeset viewer.