Theme.json -Adding color to the search block changes the wrong element #34216
Labels
[Block] Search
Affects the Search Block - used to display a search field
Global Styles
Anything related to the broader Global Styles efforts, including Styles Engine and theme.json
Description
In the editor, the color options for the search block changes the submit button in the form.
But when you add colors using theme.json, the colors are added to the form element.
In addition, the color contrast warning is always visible in the editor no matter what colors are selected.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Theme.json:
CSS output:
Screenshot:
Environment info
WordPress 5.8
Gutenberg 11.3.0
Pre-checks
The text was updated successfully, but these errors were encountered: