[wp-trac] [WordPress Trac] #59158: Altering Details block styles doubling .wp-block-details class in the output

WordPress Trac noreply at wordpress.org
Mon Aug 21 13:47:23 UTC 2023


#59158: Altering Details block styles doubling .wp-block-details class in the
output
--------------------------+------------------------------
 Reporter:  randewoo      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Formatting    |     Version:  6.3
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+------------------------------

Comment (by wildworks):

 In per block additional CSS via global styles, selectors for block names
 are automatically added. The following nested selectors will give you the
 expected results.

 {{{
 & >:not(summary) {
     margin-block-start: 0;
 }
 }}}

 For more information, please see the "Per Block Custom CSS" section of
 this dev note: https://make.wordpress.org/core/2023/03/06/custom-css-for-
 global-styles-and-per-block/

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/59158#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list