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

Opinionated block styles applying in the editor but not on the frontend #42300

Closed
MaggieCabrera opened this issue Jul 10, 2022 · 5 comments
Closed
Labels
[Block] Group Affects the Group Block [Type] Bug An existing feature does not function as intended

Comments

@MaggieCabrera
Copy link
Contributor

Description

A theme that doesn't add the opinionated block styles will still see some of them in the editor, creating a disconnect between what's on the editor and on the frontend.

Step-by-step reproduction instructions

Install a theme that doesn't add support for wp-block-styles (or remove add_theme_support( 'wp-block-styles' ); from functions.php), insert a group block with some content and add a background color to it.

You will see that the editor shows a padding on the group block that is missing from the frontend.

Screenshots, screen recording, code snippet

Frontend:

Screenshot 2022-07-10 at 18 26 40

Editor:

Screenshot 2022-07-10 at 18 26 34

Environment info

No response

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

@carolinan
Copy link
Contributor

Hi
I have not been able to reproduce this.
Using emptytheme, there is no extra padding.
Using Twenty Twenty-two there is padding, but because the theme adds left and right padding in style.css.

@MaggieCabrera
Copy link
Contributor Author

Hi I have not been able to reproduce this. Using emptytheme, there is no extra padding. Using Twenty Twenty-two there is padding, but because the theme adds left and right padding in style.css.

Emptytheme does include the support for the block styles, did you try removing it?

@carolinan
Copy link
Contributor

Yes I removed it. Tested both with and without Gutenberg trunk active.

@kathrynwp kathrynwp added [Type] Bug An existing feature does not function as intended [Block] Group Affects the Group Block labels Jul 11, 2022
@draganescu
Copy link
Contributor

I cannot repro this using a very minimalist block theme (Ames).

@MaggieCabrera
Copy link
Contributor Author

Closing this, can't reproduce anymore, it might have been something weird with my environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Group Affects the Group Block [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

4 participants