Skip to content

Group Block - Add inner container #15042

Closed
@justintadlock

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions