Skip to content

Previews appear un-styled when using a block theme #37292

@jffng

Description

@jffng

Description

Block pattern previews in the pattern inserter, as well as mobile and tablet content previews, are appearing un-styled when using a block theme. I've tested using Twenty Twenty-Two and tt1-blocks. Also verified this is not happening in core trunk.

Step-by-step reproduction instructions

  1. Activate a block theme like Twenty Twenty-Two
  2. Go to a post and insert a pattern
  3. Verify the pattern appears unstyled
  4. Insert a pattern, verify it appears as expected (styled) in the post
  5. Change the preview to "Tablet", and "Mobile", verify the styles disappear.

Screenshots, screen recording, code snippet

Kapture.2021-12-10.at.11.18.27.mp4

Environment info

  • WordPress 5.8.2, Gutenberg trunk

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

[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended[Type] RegressionRelated to a regression in the latest release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions