-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Labels
CSS StylingRelated to editor and front end styles, CSS-specific issues.Related to editor and front end styles, CSS-specific issues.[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended[Type] RegressionRelated to a regression in the latest releaseRelated to a regression in the latest release
Description
Description
In 12.1, something changed (still trying to locate) that enables blockGap related CSS even if blockGap is not enabled in theme.json. I can also confirm that this issue exists in 5.9 Beta 2 without the Gutenberg plugin active.
In Gutenberg 12.0.2, I have a Group block with a Paragraph and Buttons block inside. It looks something like this:

Now in 12.1, the same collection of blocks looks like this.

Notice all the additional CSS applied to the paragraph block. In theme.json, blockGap is not enabled on this theme.
Step-by-step reproduction instructions
- Install Twenty Twenty-Two and disable
blockGapin theme.json - Install Gutenberg 12.0.2
- Create a Group block and place a few paragraph blocks inside.
- View the markup on the frontend.
- Upgrade Gutenberg to 12.1
- Review the markup again and see all the additional
blockGaprelated CSS added to the frontend.
Screenshots, screen recording, code snippet
No response
Environment info
WordPress 5.9 Beta 2, Gutenberg 12.1
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
CSS StylingRelated to editor and front end styles, CSS-specific issues.Related to editor and front end styles, CSS-specific issues.[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended[Type] RegressionRelated to a regression in the latest releaseRelated to a regression in the latest release