-
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
Consider Group blocks to be removed if all child blocks are removed #34943
Comments
I think there has been similar feedback and a similar issue for the button block too. Would definitely be good to explore 👍 |
Works so well in Figma! A question to ponder, though: if you start by inserting a group block, then deselect and save the page, what happens then? Arguably what makes it work in Figma is that the group is mostly an organizational tool secondary to the content. |
I also totally agree if you have added content and then removed it, an empty group block doesn't make sense. Can the group block be aware though of the state either being that it did contain content or was being used as a placeholder by just being added? That I feel is what is being suggested by you sort of @jasmussen where someone might just add blocks to a page? |
I think perhaps the rule only works per one nested level up. It wouldn't delete the Columns block, just the column (which it already does). |
What problem does this address?
Empty Group blocks are difficult to select and can cause "holes" in a page's design that are hard to identify (as they are invisible when empty and not selected).
What is your proposed solution?
Consider Group blocks to be removed if all child blocks are also removed, as:
I was inspired by this through how Figma handles empty groups — which are similar in theory:
github.mp4
The text was updated successfully, but these errors were encountered: