Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Renaming the new "Section" block to "Group" #14898
Coming a bit late to the conversation around the new Section block (#13964). I don't like to resurface things that have already reached a consensus, however, I think the name for this block needs to change for a few reasons:
I'd propose calling this block Group instead, which seems more straightforward and less loaded as a term. (In the future, there'd be space for supporting specific HTML tags for the containing element, and converting a Group to a proper Section seems like a meaningful path.)
Finally, I'd strongly suggest incorporating a way to select multiple blocks and grouping them by using the block transformation tool — select a few blocks → open transformations → choose the "Group" block.
I believe it can be a more natural pattern for people to first create their content, then group it, rather than start with an empty container first.
I agree with your logic here and wish I'd been as articulate in my responses when I was pushing back on "Section" in the original PR.
Definitely a great feature and one which was requested during the work on the Block but felt to be out of scope. I would love to see this happen.
Raises a question whether this would be a single block feature of Group or if we can build this on a framework level so all blocks with
referenced this issue
Apr 10, 2019
I was thinking about that as well. There were a few constraints I could think of. Firstly, I'm not sure if it is possible to determine that a block supports inner blocks from its blockType. Also, there are some blocks using a templated inner blocks with a locked template, or there's
It seems like a
Alternatively a mapping function like