Make WordPress Core

Changeset 62115


Ignore:
Timestamp:
03/26/2026 02:26:58 AM (2 days ago)
Author:
joedolson
Message:

Admin: Fix height of controls in extra_tablenav.

Add CSS & update selectors so that controls added in the extra_tablenav region of list tables inherit the compact sizing used by core table nav controls.

Reviewed by johnbillion.
Props johnbillion, hbhalodia, mukesh27, sabernhardt, abdullah17, r1k0, joedolson, nilambar, shailu25.
Fixes #64796.

File:
1 edited

Legend:

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

    r62089 r62115  
    539539}
    540540
    541 .tablenav .actions select {
     541.wp-core-ui .tablenav input[type="text"],
     542.wp-core-ui .tablenav input[type="password"],
     543.wp-core-ui .tablenav input[type="date"],
     544.wp-core-ui .tablenav input[type="datetime"],
     545.wp-core-ui .tablenav input[type="datetime-local"],
     546.wp-core-ui .tablenav input[type="email"],
     547.wp-core-ui .tablenav input[type="month"],
     548.wp-core-ui .tablenav input[type="number"],
     549.wp-core-ui .tablenav input[type="search"],
     550.wp-core-ui .tablenav input[type="tel"],
     551.wp-core-ui .tablenav input[type="time"],
     552.wp-core-ui .tablenav input[type="url"],
     553.wp-core-ui .tablenav input[type="week"],
     554.wp-core-ui .tablenav select {
     555    padding: 0 12px;
     556    /* inherits font size 14px */
     557    line-height: 2.14285714; /* 30px for 32px height with 14px font */
     558    min-height: 32px;
     559}
     560
     561.wp-core-ui .tablenav select {
    542562    float: left;
    543563    margin-right: 6px;
    544564    max-width: 12.5rem;
    545     min-height: 32px;
    546     line-height: 2.14285714; /* 30px for 32px height with 14px font */
    547565    padding: 0 24px 0 8px;
    548566}
    549567
    550 .tablenav .actions .button {
     568.wp-core-ui .tablenav .button {
    551569    min-height: 32px;
    552570    line-height: 2.30769231; /* 30px for 32px height with 13px font */
Note: See TracChangeset for help on using the changeset viewer.