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

Provide a way for blocks to opt-out of being grouped by the Group block #16446

Closed
richtabor opened this issue Jul 6, 2019 · 2 comments
Closed

Comments

@richtabor
Copy link
Member

Is your feature request related to a problem? Please describe.
Currently there's no implementation for blocks to opt-out of being wrapped within the Group block. One common use case I see here is with child blocks that only exists within specific parent blocks. These likely do not need to ever be grouped. And if the Group block is not added as an allowed block within InnerBlocks, it doesn't get added anyhow.

Relevant discussion on WordPress Slack.

Examples:

  1. A Form block with Field child blocks
  2. A Pricing Table block with child blocks within for each table

Sure, we could group the child blocks in these scenarios, but what value would we really add, and at what UX cost? If we're expecting users to first group before adding any background colors, that's quite a few extra steps to do so (vs. having a Background Color selection within the Settings Sidebar of the child block).

Describe the solution you'd like
Perhaps child blocks are opted-out already and must opt-in to support being grouped. And if so, the Group block should probably be white-listed as an allowed block within InnerBlocks - so we're not relying on folks to add it every time.

Describe alternatives you've considered
There's currently no way to remove the Group block transformation for blocks.

@paaljoachim
Copy link
Contributor

paaljoachim commented Jul 7, 2019

The issue seems similar to:
"Add supports option to enable/disable group option per block."
#16416

@richtabor
Copy link
Member Author

The issue seems similar to:
"Add supports option to enable/disable group option per block."
#16416

Good find. I'll post a comment with the info I added here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants