Editor: When picking a custom color dynamically set a text color with good contrast #37051
Labels
[Feature] Post/Page Editor
The editor for editing posts and pages.
[Type] Enhancement
Changes to an existing feature — removing, adding, or changing parts of it
Milestone
If I set the background color of a group block to predefined colors, the text color inside of the group block is set to a color with an appropriate contrast (as chosen by the theme css classes
has-secondary-background
)However, if I set the background color of a group block to a custom color, the text color always switches to dark grey. This means I cannot set a custom dark background color as the text is unreadable with no way to change the color.
Let's see if Gutenberg core would be interested in an enhancement where when picking a custom background color we also dynamically set a text color with good contrast.
The text was updated successfully, but these errors were encountered: