theme.css is included in editor even if wp-block-styles
is not enabled
#44510
Labels
[Feature] Site Editor
Related to the overarching Site Editor (formerly "full site editing")
Description
It seems that theme.css is included in the editor whether
wp-block-styles
is enabled or not. However, on the front end, theme.css is only included if the theme opts intowp-block-styles
(which I believe is correct).I noticed this because it looks like the default separator block is limited to a width of 100px (unless it is set to wide style or dots style) in the editor, but it will fill the available space on the front end:
Editor:
Front end:
This is because there is an explicit 100px width set in theme.css, here:
I don't think theme.css should be included if the theme doesn't opt into
wp-block-styles
, otherwise, we're going to see inconsistent styles between the front end and the editor.Step-by-step reproduction instructions
To replicate the issue with the separator block:
wp-block-styles
(e.g. Twenty Twenty-Three)wp-block-styles
by adding the following to the theme's functions.php file:Screenshots, screen recording, code snippet
No response
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
The text was updated successfully, but these errors were encountered: