[wp-trac] [WordPress Trac] #50766: Not enough padding on "Warning: these page should not be the same!"

WordPress Trac noreply at wordpress.org
Sun Jul 26 00:25:44 UTC 2020


#50766: Not enough padding on "Warning: these page should not be the same!"
-------------------------+-------------------------------------------------
 Reporter:               |      Owner:  (none)
  SergeyBiryukov         |
     Type:  defect       |     Status:  new
  (bug)                  |
 Priority:  normal       |  Milestone:  5.6
Component:               |    Version:
  Administration         |   Keywords:  needs-patch good-first-bug has-
 Severity:  normal       |  screenshots
  Focuses:  ui, css      |
-------------------------+-------------------------------------------------
 1. Go to Reading Settings.
 2. Assign the same page as Homepage and Posts page.
 3. You'll see the two message: "Settings saved" and "Warning: these page
 should not be the same!".
 4. The first message has enough padding, while the second one does not.

 This is caused by generic form table styles:
 {{{
 .form-table td p {
     margin-top: 4px;
     margin-bottom: 0;
 }
 }}}
 taking precedence over
 {{{
 div.error p {
     margin: 0.5em 0;
     padding: 2px;
 }
 }}}

 Adding a `notice` class to the message fixes the issue.

 Note: This also applies to "Warning: these pages should not be the same as
 your Privacy Policy page!" directly below.

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


More information about the wp-trac mailing list