Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cover block hides content if color variable is not set #31253

Closed
supernovia opened this issue Apr 27, 2021 · 2 comments · Fixed by #31402
Closed

Cover block hides content if color variable is not set #31253

supernovia opened this issue Apr 27, 2021 · 2 comments · Fixed by #31402
Assignees
Labels
[Block] Cover Affects the Cover Block - used to display content laid over a background image [Status] In Progress Tracking issues with work in progress

Comments

@supernovia
Copy link

Description

A user created a cover block with fairly complex content. When they switched themes, there were no obvious errors in the editor, but none of the content appeared either. I took video so you can get a better idea what's happening:
https://cloudup.com/cHLs8znxI1n

HT @akirk for figuring out what was causing the user's content to go missing!

Step-by-step reproduction instructions

  • Activate a theme that has theme-based color support (this user had Hever active)
  • Start a post or page. Add a cover block and pick a background color from the theme's palette
  • Add content to the cover block and publish
  • Switch themes to one that does not have the same type of color support
  • Edit the post; note the visual editor does not display the content, even though it is still there in "Code" as well as on preview.

Expected behaviour

I would expect the cover block to display, perhaps with default colors selected.

Actual behaviour

The cover block shows a color selection option and does not display the content.

Screenshots or screen recording (optional)

https://cloudup.com/cHLs8znxI1n

WordPress information

  • WordPress version: Sorry I'm not finding this, but it's on a WordPress.com free site, so everything is fairly current.

Device information

@supernovia
Copy link
Author

Noting this possibly related discussion: #29568

@stokesman
Copy link
Contributor

This is another way to reproduce #28888. Switching themes and having the content not show seems like it would be especially confusing.

@skorasaurus skorasaurus added the [Block] Cover Affects the Cover Block - used to display content laid over a background image label Apr 28, 2021
@github-actions github-actions bot added the [Status] In Progress Tracking issues with work in progress label May 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Cover Affects the Cover Block - used to display content laid over a background image [Status] In Progress Tracking issues with work in progress
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants