[wp-trac] [WordPress Trac] #55509: CSS conflict in Custom Fields table

WordPress Trac noreply at wordpress.org
Thu Mar 31 21:33:27 UTC 2022


#55509: CSS conflict in Custom Fields table
---------------------------+-----------------------------
 Reporter:  princeofabyss  |      Owner:  (none)
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  General        |    Version:  5.9.1
 Severity:  normal         |   Keywords:
  Focuses:  css            |
---------------------------+-----------------------------
 When using the [https://wordpress.org/support/article/custom-fields/
 Custom Fields] feature, there are two conflicting CSS styles.

 More specifically the background-color in the following CSS bit:


 {{{
 #postcustomstuff table {
   margin: 0;
   width: 100%;
   border: 1px solid #dcdcde;
   border-spacing: 0;
   background-color: #f6f7f7;
 }
 }}}


 with the background-color in the following CSS bit:

 {{{

 .alternate, .striped > tbody > :nth-child(2n+1), ul.striped > :nth-
 child(2n+1) {
   background-color: #f6f7f7;
 }
 }}}


 resulting in all rows of the table in div#postcustomstuff to have the same
 background color (#f6f7f7)

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


More information about the wp-trac mailing list