Skip to content

Patterns in Classic Themes: full-width alignment doesn't display in the editor for patterns created in Block Themes #62516

@liviopv

Description

@liviopv

Description

Possibly related to #62326

When a pattern created in a Block Theme with a full-width block is inserted in a page or post after switching to a Classic Theme, the full-width block in the pattern will display in content width in the editor. It maintains the correct alignment on the front end, though.

Step-by-step reproduction instructions

  1. Activate TT4
  2. Create a Pattern with a Cover Block with full-width alignment
  3. Switch theme to TT1
  4. Insert the patter in a post or page
  5. The editor will display the Cover Block in the pattern as if it had no alignment, while the front end will display the correct alignmentpattern

Screenshots, screen recording, code snippet

CleanShot 2024-06-12 at 18 27 45@2x

Environment info

  • WordPress 6.6 Beta 2
  • Gutenberg 18.5

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

    [Feature] LayoutLayout block support, its UI controls, and style output.[Feature] ThemesQuestions or issues with incorporating or styling blocks in a theme.[Type] BugAn existing feature does not function as intended

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions