Make WordPress Core

Changeset 62171


Ignore:
Timestamp:
03/28/2026 12:26:38 PM (6 months ago)
Author:
wildworks
Message:

Admin reskin: Remove line-height from input fields.

line-height values that were previously used to match the height of input fields affect the height of the background shown when text inside those fields is selected. Removing these line-height declarations allows the text selection highlight to render more naturally.

Additionally, update the height of the custom Date/Time format input fields on the General Settings screen to 32px to align with the new design system.

Props arkaprabhachowdhury, audrasjb, hmrisad, huzaifaalmesbah, manhar, manishxdp, noruzzaman, ozgursar, r1k0, sachinrajcp123, wildworks.

Fixes #64763.

Location:
trunk/src/wp-admin/css
Files:
7 edited

Legend:

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

    r61779 r62171  
    9595        font-size: 12px;
    9696        font-family: monospace;
    97         line-height: 2.33333333; /* 28px */
    9897        margin: 0;
    9998        padding: 0 5px;
  • trunk/src/wp-admin/css/common.css

    r62145 r62171  
    11161116.wp-filter .search-form input[type="search"] {
    11171117        min-height: 32px;
    1118         line-height: 2.14285714; /* 30px for 32px height with 14px font */
    11191118        padding: 0 8px;
    11201119}
  • trunk/src/wp-admin/css/customize-controls.css

    r61860 r62171  
    21852185
    21862186.themes-filter-bar .wp-filter-search {
    2187         line-height: 2.14285714; /* 30px for 32px compact input */
    21882187        padding: 0 10px 0 30px;
    21892188        max-width: 100%;
  • trunk/src/wp-admin/css/dashboard.css

    r62031 r62171  
    534534        margin: 0;
    535535        min-height: 32px;
    536         line-height: 2.14285714;
    537536        padding: 0 8px;
    538537}
  • trunk/src/wp-admin/css/forms.css

    r62115 r62171  
    7070        padding: 0 12px;
    7171        /* inherits font size 14px */
    72         line-height: 2.71428571; /* 38px for 40px min-height */
    7372        min-height: 40px;
    7473}
     
    817816p.search-box input[type="text"] {
    818817        min-height: 32px;
    819         line-height: 2.14285714; /* 30px for 32px height with 14px font */
    820818        padding: 0 8px;
    821819}
     
    12381236        width: 56px;
    12391237        margin: -2px 0;
    1240         min-height: 24px;
    1241         line-height: 1.71428571; /* 24px for 14px font size */
     1238        min-height: 32px;
    12421239}
    12431240
     
    16021599                padding: 0 12px;
    16031600                min-height: 40px;
    1604                 line-height: 2.5; /* 40px for 16px font */
    16051601        }
    16061602
  • trunk/src/wp-admin/css/list-tables.css

    r62146 r62171  
    687687        text-align: center;
    688688        min-height: 32px;
    689         line-height: 2.30769231; /* 30px for 32px height with 13px font */
    690689        padding: 0 8px;
    691690}
     
    11001099.inline-edit-row select,
    11011100.inline-edit-row input:where(:not([type=checkbox],[type=radio],[type=submit],[type=button])) {
    1102         line-height: 2.14285714;
    11031101        min-height: 32px;
    11041102        padding: 0 8px 0 8px;
  • trunk/src/wp-admin/css/media.css

    r61757 r62171  
    569569.media-frame.mode-grid .media-toolbar input[type="search"] {
    570570        min-height: 32px;
    571         line-height: 2.14285714; /* 30px for 32px height with 14px font */
    572571        padding: 0 8px;
    573572}
Note: See TracChangeset for help on using the changeset viewer.