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
Add a theme.json with colors for the search block to your test theme. (Example code below)
In either editor, add a search block.
See that the colors of the block are affecting the form, not the button in the block.
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:
![The black background is visible on the form element in the search block in the editor](https://webcf.waybackmachine.org/web/20210823183827im_/https://user-images.githubusercontent.com/7422055/130339439-8adf7d0c-564c-4eae-814a-94c1085ab6cd.gif)
Environment info
WordPress 5.8
Gutenberg 11.3.0
Pre-checks
The text was updated successfully, but these errors were encountered: