Admin reskin: Remove line-height from input elements#11383
Admin reskin: Remove line-height from input elements#11383t-hamano wants to merge 5 commits intoWordPress:trunkfrom
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Test using WordPress PlaygroundThe changes in this pull request can previewed and tested using a WordPress Playground instance. WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser. Some things to be aware of
For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation. |
a7f2c63 to
24c630f
Compare
t-hamano
left a comment
There was a problem hiding this comment.
I will explain which UI each change corresponds to. Also, note that select elements are out of scope in this PR, unless input and select are included in the same selector.
|
|
||
| .wp-filter .search-form input[type="search"] { | ||
| min-height: 32px; | ||
| line-height: 2.14285714; /* 30px for 32px height with 14px font */ |
| } | ||
|
|
||
| .themes-filter-bar .wp-filter-search { | ||
| line-height: 2.14285714; /* 30px for 32px compact input */ |
| width: 40%; | ||
| margin: 0; | ||
| min-height: 32px; | ||
| line-height: 2.14285714; |
| input[type="week"] { | ||
| padding: 0 12px; | ||
| /* inherits font size 14px */ | ||
| line-height: 2.71428571; /* 38px for 40px min-height */ |
There was a problem hiding this comment.
This is the basic style for the input element.
| -webkit-appearance: none; | ||
| padding: 0 12px; | ||
| min-height: 40px; | ||
| line-height: 2.5; /* 40px for 16px font */ |
There was a problem hiding this comment.
This is the basic style for mobile viewports.
| p.search-box input[type="search"], | ||
| p.search-box input[type="text"] { | ||
| min-height: 32px; | ||
| line-height: 2.14285714; /* 30px for 32px height with 14px font */ |
| font-size: 13px; | ||
| text-align: center; | ||
| min-height: 32px; | ||
| line-height: 2.30769231; /* 30px for 32px height with 13px font */ |
|
|
||
| .inline-edit-row select, | ||
| .inline-edit-row input:where(:not([type=checkbox],[type=radio],[type=submit],[type=button])) { | ||
| line-height: 2.14285714; |
|
|
||
| .media-frame.mode-grid .media-toolbar input[type="search"] { | ||
| min-height: 32px; | ||
| line-height: 2.14285714; /* 30px for 32px height with 14px font */ |
|
Nice catch!
Addressed in ea7f3d0
Addressed in 935dd5e Simply removing the
Therefore, I removed the
|
|
Looking great to me, thanks! |











Trac ticket: https://core.trac.wordpress.org/ticket/64763
Use of AI Tools
AI assistance: Yes
Tool(s): Claude