Row (Group variation) styling doesn't work for themes without layout
support
#35439
Labels
Backwards Compatibility
Issues or PRs that impact backwards compatability
[Block] Group
Affects the Group Block
CSS Styling
Related to editor and front end styles, CSS-specific issues.
[Feature] Themes
Questions or issues with incorporating or styling blocks in a theme.
[Type] Bug
An existing feature does not function as intended
Description
The generated styles for the Row variation of the Group block do not work for themes that haven't enabled
layout
support in theirtheme.json
(or just lack atheme.json
entirely). This old Group markup, which has a nested div for the content with the class:wp-block-group__inner-container
, is not accounted for in the generated front-end styles.The result is that, when using these themes, although you can easily insert a Row in the block editor (and it looks just fine there), the Row erroneously appears the same as a vertical Group on the front-end.
Step-by-step reproduction instructions
layout
support. (Astra is a popular one.)Screenshots, screen recording, code snippet
No response
Environment info
Wordpress 5.8.1
Gutenberg 11.6.0 (also happens in latest
trunk
as of when I'm making this issue)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: