[wp-trac] [WordPress Trac] #48531: Regression: styling of most form elements is uneven or off-center

WordPress Trac noreply at wordpress.org
Thu Nov 7 19:51:35 UTC 2019


#48531: Regression: styling of most form elements is uneven or off-center
--------------------------+--------------------
 Reporter:  azaozz        |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  5.3.1
Component:  General       |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+--------------------
 Introduced in #47477.

 The change that caused this is the overriding of line-height and adding
 min-height to all "single-line" form elements:

 {{{
 input[type="text"],
 input[type="password"],
 input[type="date"],
 input[type="datetime"],
 input[type="datetime-local"],
 input[type="email"],
 input[type="month"],
 input[type="number"],
 input[type="search"],
 input[type="tel"],
 input[type="time"],
 input[type="url"],
 input[type="week"] {
         padding: 0 8px;
         /* inherits font size 14px */
         line-height: 2; /* 28px */
         /* Only necessary for IE11 */
         min-height: 30px;
 }
 }}}

 This causes problems in many plugins and in some external packages like
 the UI in the classic editor/TinyMCE.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48531>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list