Image block media placeholder: remove duotone#76721
Conversation
Add CSS to the editor.scss file of the image block to disable the duotone when the image block is selected and the media placeholder shows.
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
Size Change: +117 B (0%) Total Size: 7.66 MB
ℹ️ View Unchanged
|
|
Flaky tests detected in a8396cf. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/23338733193
|
Co-authored-by: carolinan <poena@git.wordpress.org> Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
Co-authored-by: carolinan <poena@git.wordpress.org> Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
What?
Closes #76720
When a duotone is applied to an image block that has no image yet, the filter shows when the block is selected.
It is only intended to show on the placeholder illustration, when the block is not selected.
Why?
It is not intended to affect the interface this way.
If the duotone has a low color contrast, it can be difficult to read the text and use the controls.
How?
Add CSS to the editor.scss file of the image block to disable the duotone when the image block is selected and the media placeholder shows.
Testing Instructions
Screenshots or screencast
Use of AI Tools
I used Codex to locate where the bug was, not to add the CSS.