How to remove the wrapper wp-block-group__inner-container arround the content of group ?

Created on 4 June 2024, 10 months ago

Hello

A div "wp-block-group__inner-container arround" is added arround of content block "group" ?

Is it possible to avoid that ?

This div is added in Drupal\gutenberg\Plugin\Filter\GutenbergFilter::restoreGroupInnerContainer

Thanks

πŸ’¬ Support request
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium philalawst

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @philalawst
  • πŸ‡ΈπŸ‡ΎSyria hodba Dubai

    I am facing the issue upgrading from 2.9. Many styles are breaking because of this. +1

  • Just encountered this issue after upgrading as well. In my case, I had some grid layouts that turned into a single, narrow column. My temporary solution has been to add a style rule that just inherits most of the styles from the inner-container's parent.

    .wp-block-group__inner-container {
      all: inherit;
      width: 100%;
    }

    However, it seems like this container was removed from the WordPress Gutenberg repository years ago, considering that its introduction caused problems back then, and it's only in consideration for legacy theme support. It should be removed, or there should at least be the option to remove it in some way.

Production build 0.71.5 2024