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

Changing alignment of the cover block when set to fixed position breaks image #28557

Closed
brentswisher opened this issue Jan 28, 2021 · 0 comments · Fixed by #28565
Closed

Changing alignment of the cover block when set to fixed position breaks image #28557

brentswisher opened this issue Jan 28, 2021 · 0 comments · Fixed by #28565
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 [Type] Bug An existing feature does not function as intended
Milestone

Comments

@brentswisher
Copy link
Contributor

Description

Originally reported by @Azragh here. There are issues with the cover block losing the background image when some settings are changed or the block is duplicated with ctrl + shift + D.

I have verified both that this is happening for me, but that it is unrelated to the changes in #28499. (I reverted those changes locally and it was still happening) I know @jasmussen has been working through some issues with the cover block, so possibly related to those?

Step-by-step reproduction instructions

  1. Create a new post
  2. Add a cover block with a background image
  3. Toggle the "fixed background" option
  4. Change the alignment of the cover to be aligned left
  5. See that the background of the cover is now just the color black

Expected behaviour

That the background image remains when the alignment is changed

Actual behaviour

The background image disappears when the alignment is changes

Screenshots or screen recording (optional)

8B2sQItjxU

WordPress information

Latest master using local wp-env environment

Device information

  • Device: Desktop
  • Operating system: Mac OS Catalina
  • Browser: Chrome 88.0
@brentswisher brentswisher added [Type] Bug An existing feature does not function as intended [Block] Cover Affects the Cover Block - used to display content laid over a background image labels Jan 28, 2021
@github-actions github-actions bot added the [Status] In Progress Tracking issues with work in progress label Jan 28, 2021
@ockham ockham added this to the Gutenberg 9.9 milestone Jan 28, 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 [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants