[wp-trac] [WordPress Trac] #56366: Twenty Twenty-One: Consider removing `.woocommerce` class from theme styles

WordPress Trac noreply at wordpress.org
Thu Aug 11 19:55:42 UTC 2022


#56366: Twenty Twenty-One: Consider removing `.woocommerce` class from theme styles
---------------------------+-----------------------------
 Reporter:  sabernhardt    |      Owner:  (none)
     Type:  enhancement    |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Bundled Theme  |    Version:
 Severity:  normal         |   Keywords:
  Focuses:  css            |
---------------------------+-----------------------------
 The selectors for Twenty Twenty-One's default `max-width` have used the
 `.woocommerce` class since the theme's
 [https://github.com/WordPress/twentytwentyone/commit/956a3172a41545ca04a133c034b47ae870a4a9cd
 #diff-
 b757cb999144a1bc7e14604bc6d4bab7d87ea1a3bf5000c33937e490d75b9d92R3-R9
 initial commit].

 Current:
 {{{
 .entry-content >
 *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not
 (.wp-block-separator):not(.woocommerce),
 *[class*="inner-container"] > *:not(.entry-
 content):not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not
 (.wp-block-separator):not(.woocommerce) {
 }}}

 @davidbaumwald stated in ticket:56337#comment:11:

 > I don't think Core should have that code as it would need to be
 supported forever. This gets worse as WC evolves and changes its code
 which then requires more adjustments by Core.

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


More information about the wp-trac mailing list