Skip to content

Group blocks inside row loose fixed width setting when converted to synced pattern #64332

Open

Description

Description

If I turn a group block inside a row block (like a contact card of something similar) into a synced pattern, the group block looses its settings for width (Dimensions -> Width). This in turn breaks the layout in the containing row block since the synced pattern tries to fill the whole width of the parent. This only happens if the pattern is synced though, unsynced patterns preserve the width setting.

It is possible to edit the synced pattern and then use the controls in Layout -> Content width to achieve a fixed width that will work in a row block, but it seems more intuitive that the block should simple preserve its own settings when it is converted to a synced pattern.

Step-by-step reproduction instructions

  1. Add a row block containing group blocks with fixed width.
  2. Turn one of the group blocks into a synced pattern.
  3. The width setting is removed from the synced pattern and the layout breaks.

Screenshots, screen recording, code snippet

No response

Environment info

WordPress 6.6.1, Gutenberg 18.9.0.

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
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[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