Disable duotone until media is provided in Cover block #48804
Labels
[Block] Cover
Affects the Cover Block - used to display content laid over a background image
Needs Design Feedback
Needs general design feedback.
[Status] In Progress
Tracking issues with work in progress
[Type] Enhancement
A suggestion for improvement.
Description
The duotone control does not take affect unless there is media supplied to the Cover block. As-is, you can set a duotone value without meeting that requirement — which provides no visual feedback & feels like a loose end we can easily clean up.
Step-by-step reproduction instructions
Add a cover block.
See the duotone control.
Apply a duotone preset, see no changes.
Pick a color from the placeholder.
See the duotone control.
Apply a duotone preset, see no changes.
Screenshots, screen recording, code snippet
No media, placeholder state, duotone applied:
No media, overlay color, duotone applied:
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: