Skip to content

Unable to target group block with variation applied #41230

@markhowellsmead

Description

@markhowellsmead

Description

The new block variations for the group block generate inline CSS, but the lack of a CSS class name (e.g. wp-block-group--stacked or wp-block-group--row) makes it impossible to target these elements using theme/plugin CSS.

Step-by-step reproduction instructions

Apply a row or stack layout to the group block.

Screenshots, screen recording, code snippet

No response

Environment info

  • WordPress 6.0-RC4
  • With and without Gutenberg plugin

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Block] GroupAffects the Group Block (and row, stack and grid variants)[Feature] Block VariationsBlock variations, including introducing new variations and variations as a feature[Type] EnhancementA suggestion for improvement.

    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