Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gutenberg previews are not loading styles correctly #662

Open
goranalkovic-infinum opened this issue Aug 30, 2022 · 4 comments
Open

Gutenberg previews are not loading styles correctly #662

goranalkovic-infinum opened this issue Aug 30, 2022 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@goranalkovic-infinum
Copy link
Contributor

Describe your bug

When you enter the mobile/tablet preview mode and Gutenberg enables the iframed editor, our styles (mostly CSS variable definitions) are not loading so everything looks very broken.

Steps to Reproduce

  1. Open Gutenberg
  2. Add a block (e.g. Button)
  3. Enter mobile preview mode
  4. See that the button is missing styles

Expected behavior

Styles should look the same as in Desktop mode.

Screenshots, screen recording, code snippet

Screen.Recording.2022-08-30.at.10.06.13.mov

Environment info

  • PHP version: 7.4
  • Dev env.: Valet
  • Server type: nginx
  • OS: macOS Monterey 12.5
  • Libs version: latest stable (7.0.1)

Please confirm that you have searched existing issues in this repo.

Yes

Please confirm that you have searched in our documentation and couldn't find the answer.

Yes

Please confirm that your bug occurs with all plugins uninstalled and with the default WordPress theme active.

Yes

@goranalkovic-infinum goranalkovic-infinum added the bug Something isn't working label Aug 30, 2022
@dingo-d
Copy link
Collaborator

dingo-d commented Sep 6, 2022

The same applies to pattern previews, they are not loading styles as well.

@dingo-d
Copy link
Collaborator

dingo-d commented Jul 6, 2023

Possibly related: WordPress/gutenberg#38673 (comment)

@goranalkovic-infinum
Copy link
Contributor Author

While this seems to be working way better now, it looks like it's rendering the editor previews for everything, with some styles still missing

@dingo-d
Copy link
Collaborator

dingo-d commented Nov 21, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants