[wp-trac] [WordPress Trac] #60408: Twenty Nineteen: Theme block styles are not applied to blocks in the widget area

WordPress Trac noreply at wordpress.org
Fri Jul 19 11:41:12 UTC 2024


#60408: Twenty Nineteen: Theme block styles are not applied to blocks in the widget
area
---------------------------------------+-----------------------------
 Reporter:  poena                      |       Owner:  (none)
     Type:  defect (bug)               |      Status:  new
 Priority:  normal                     |   Milestone:  Future Release
Component:  Bundled Theme              |     Version:  5.8
 Severity:  normal                     |  Resolution:
 Keywords:  needs-patch needs-testing  |     Focuses:  css
---------------------------------------+-----------------------------

Comment (by sabernhardt):

 I have not tried to implement any of these, but I can share my preferences
 for the concepts.

 1. If {{{.entry .entry-content}}} can be removed without changing the post
 content's appearance, that would be my preference. However, those styles
 may need a higher specificity to override something.
 2. If the selectors need higher specificity but one class is enough, I
 would suggest replacing {{{.entry .entry-content}}} with {{{.site}}}. The
 color patterns function uses `.entry .button` (without `.entry-content`),
 which suggests that that needed to override a selector.
 3. If it needs two class-level selectors, {{{:root .site}}} might work.
 4. Hopefully the stylesheet would not need to copy all of those selectors
 with a {{{.widget-area}}} variation.

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


More information about the wp-trac mailing list