Make WordPress Core

Changeset 62172


Ignore:
Timestamp:
03/28/2026 04:35:23 PM (2 months ago)
Author:
audrasjb
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.

Reviewed by wildworks, audrasjb.
Merges [62171] to the 7.0 branch.

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

Location:
branches/7.0
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • branches/7.0

  • branches/7.0/src/wp-admin/css/color-picker.css

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

    r62145 r62172  
    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}
  • branches/7.0/src/wp-admin/css/customize-controls.css

    r61860 r62172  
    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%;
  • branches/7.0/src/wp-admin/css/dashboard.css

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

    r62115 r62172  
    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
  • branches/7.0/src/wp-admin/css/list-tables.css

    r62146 r62172  
    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;
  • branches/7.0/src/wp-admin/css/media.css

    r61757 r62172  
    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.