Skip to content

Group block: When background image is set, has-background CSS class is missing #56261

@webmandesign

Description

@webmandesign

Description

When I set background image for Group block, I expect the has-background CSS class to be applied on the block container.
Just like it is for Cover block, for example, or when setting a background color on any block.

Step-by-step reproduction instructions

  1. Insert a Group block into post content and set a background image to it.
  2. Save post and check the results on front-end. With browser code inspector check whether the has-background class has been applied on .wp-block-group container.

Screenshots, screen recording, code snippet

group-block-background-image

Environment info

  • WordPress 6.4.1
  • Gutenberg 17.0.2

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

Labels

Needs TestingNeeds further testing to be confirmed.[Block] GroupAffects the Group Block (and row, stack and grid variants)[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions