Skip to content

Adapt group block placeholder controls to render when selected #56086

@richtabor

Description

@richtabor

There's an inconsistency between empty states of columns and group blocks. Related: #53761

Group

The resting state of a group block renders an inserter and a placeholder (when used as a row or stack), which does always renders, regardless of selection.

In the visual below, the group block is not selected, but the placeholder is still rendered.

CleanShot 2023-11-13 at 11 03 57

Column

The resting state of an empty columns block does not render visually in the editor, much like the resting state of a spacer block. This results in a more 1:1 experience with what your site looks like on the front-end.

In the visual below, the columns block is not selected, and no placeholder is rendered (expected).

CleanShot 2023-11-13 at 11 04 57

Proposal

I propose that the group block matches the current spec of the columns block, where the inserter is rendered when selected, but not otherwise. When selected, the controls are all available as they are today.

This is consistent with how spacer blocks are rendered, and will promote a better one to one experience when viewing a site within the editor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Block] GroupAffects the Group Block (and row, stack and grid variants)[Type] EnhancementA suggestion for improvement.

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions