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
blockGap in 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
blockGap related 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
Description
In 12.1, something changed (still trying to locate) that enables
blockGaprelated CSS even ifblockGapis 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,
blockGapis not enabled on this theme.Step-by-step reproduction instructions
blockGapin theme.jsonblockGaprelated 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