Skip to content

Synced Patterns: Not receiving alignment attribute in editor #8288

@brettsmason

Description

@brettsmason

Describe the bug
I'm attempting to use the shared blocks feature but have hit an editor specific issue with alignfull and alignwide. When converting a a wide or full width block to shared, in the editor view the block looses its width. This does not apply to the front end which works fine.

To Reproduce

  1. Create a block that supports full width/wide width (eg cover block).
  2. Save the block as a shared block.
  3. The block is no longer the width specified.

Expected behavior
I expected the shared block to keep the current data-align: full/wide that non-shared blocks receive when setting the alignment. This makes it very difficult currently to use shared blocks for aligned blocks, as its not an accurate representation of how the block actually looks.

Screenshots
shared-block

Metadata

Metadata

Assignees

Labels

Needs DevReady for, and needs developer efforts[Block] BlockThe "Reusable Block" Block[Feature] Synced PatternsRelated to synced patterns (formerly reusable blocks)[Type] BugAn existing feature does not function as intended

Type

No type
No fields configured for issues without a type.

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions