[wp-trac] [WordPress Trac] #57544: Twenty Twenty: Incorrect Colour in editor for Separator Block

WordPress Trac noreply at wordpress.org
Mon Jul 22 22:45:36 UTC 2024


#57544: Twenty Twenty: Incorrect Colour in editor for Separator Block
-------------------------------------+-----------------------------
 Reporter:  bhaveshdesai13           |       Owner:  (none)
     Type:  defect (bug)             |      Status:  assigned
 Priority:  normal                   |   Milestone:  Future Release
Component:  Bundled Theme            |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:  css
-------------------------------------+-----------------------------
Changes (by sabernhardt):

 * keywords:  has-patch close => has-patch needs-testing


Comment:

 The theme preset colors still can display incorrectly in the editor, but
 the stylesheets should not need to add new styles. The order of rulesets
 can cause problems. The theme's automatic contrast text color with a
 background-related class should come before the rules for text colors (at
 the same specificity level). Then the Separator would inherit its color
 from the text color class.

 [attachment:"57544.3.patch"] edits the order for the front end too, though
 the inline `twentytwenty_get_customizer_css` colors tend to override
 `style.css`.

 My [https://gist.github.com/sabernhardt/cda45f5a6428b36f9ee2224beed61ee9
 sample blocks]:
 - Separator blocks with default color, Twenty Twenty palette presets,
 black and white presets, and one custom color (lighter colors are in a
 Group with a darker background for better visibility)
 - Paragraph block with Accent text color and Primary background color

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


More information about the wp-trac mailing list