Cover block: filtering in text color support sets color inline style instead of color CSS class in editor #45786
Labels
[Block] Cover
Affects the Cover Block - used to display content laid over a background image
Needs Technical Feedback
Needs testing from a developer perspective.
[Type] Help Request
Help with setup, implementation, or "How do I?" questions.
Description
I'm filtering in support for Text Color on the Cover block. I can see the Text Color control, and the Text Color CSS class is applied on save. In the Editor, instead of a Text Color CSS class, I'm seeing an inline style applied.
I would have expected that the Editor would use the Text Color CSS class as well. As it is, I can't easily override the text color for the
.wp-block-cover__inner-container
div. I'm reaching out to the team mostly because I can't make sense of why the block behaves in this way instead of applying a Text Color CSS class.Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
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: