-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Allow transforming from Group to Cover #40209
Comments
This transformation is already supported - #30890, but there's a very specific gutenberg/packages/block-library/src/cover/transforms.js Lines 63 to 77 in 7f2978a
Edit: I think there's no need to require background color after #31402. |
Right! Seems it should be an irrelevant condition now. |
Nice idea! I think I've got something working okay, I'll open up a PR shortly. |
I've opened up a PR in #40212 — there was a bit of a decision involved in figuring out a default |
This is a transformation we really need to offer. Right now if you want to transition a set of blocks into a cover you need to jump through some hoops.
One consideration to make, particularly for group variations (stack / row): should the transform modify the container block to cover or should it preserve the group and add a cover as an extra wrapper?
cc @apeatling @andrewserong
The text was updated successfully, but these errors were encountered: