Skip to content

Group Block - Add inner container #15042

@justintadlock

Description

@justintadlock

The Group block should have a .wp-block-group__inner-container. This would be consistent with the .wp-block-cover__inner-container for the Cover block.

This is particularly important if theme authors want to do something like have a full-width group but keep the content contained. At the moment, I'm having to do this:

.wp-block-cover > * {
	// Reset everything to content width.
}

With no inner container and the specific design I'm working on, I'm also having to reset my inner wide and full aligns by targeting:

.alignfull .alignwide,
.alignfull .alignfull,
.alignwide .alignwide,
.alignwide .alignfull {
	// Reset align margins and width.
}

I haven't even tested or figured out how I'm going to handle left/right alignment yet.

With an inner container, I could literally cut all that back to target one selector and a couple of lines of CSS.

gb-group-full

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs Design FeedbackNeeds general design feedback.[Block] GroupAffects the Group Block (and row, stack and grid variants)

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions