Skip to content

Unable to opt-out of block gap styles for columns block #42333

@grappler

Description

@grappler

Description

Unable to opt-out of black gap styles for the columns block as of WordPress 6.0.

I am running a custom classic theme with a theme.json.

I would have expected that if not opted-in to the block gap styles, there would be no gap styles.

Seems like this was supposed to be the case based on #34491, but the Gap CSS is outputted regardless.

theme.json ```json { "version": 1, "settings": { "layout": { "contentSize": "940px" }, "color": { "custom": true, "customGradient": true, "link": true, "palette": [ { "name": "Black", "slug": "black", "color": "#111" }, { "name": "White", "slug": "theme-white", "color": "#fff" }, { "name": "Dark Grey", "slug": "dark-grey", "color": "#333" }, { "name": "Grey", "slug": "grey", "color": "#969696" }, { "name": "Light Grey", "slug": "light-grey", "color": "#ededed" }, { "name": "Magenta", "slug": "magenta", "color": "#d10074" }, { "name": "Light Blue", "slug": "light-blue", "color": "#c2e6f6" }, { "name": "Light Yellow", "slug": "light-yellow", "color": "#f7f191" }, { "name": "Cyan", "slug": "cyan", "color": "#49778b" }, { "name": "Light Cyan", "slug": "light-cyan", "color": "#7ec1cb" }, { "name": "Blizzard Blue", "slug": "blizzard-blue", "color": "#9fd6f1" }, { "name": "Orange", "slug": "orange", "color": "#f7a600" }, { "name": "Light Orange", "slug": "light-orange", "color": "#fab943" }, { "name": "Plum", "slug": "plum", "color": "#941e7b" }, { "name": "Buddha Gold", "slug": "buddha-gold", "color": "#b0a000" }, { "name": "Caper", "slug": "caper", "color": "#dde7ac" }, { "name": "Golden Sand", "slug": "golden-sand", "color": "#eadc72" }, { "name": "Pink", "slug": "pink", "color": "#f088b6" }, { "name": "Light Pink", "slug": "light-pink", "color": "#f5b5d2" } ] }, "typography": { "customFontSize": true }, "spacing": { "padding": true, "margin": true, "units": [ "px", "%", "em", "rem", "vh", "vw" ] } } } ```

Step-by-step reproduction instructions

  1. Have a classic theme with a theme.json
  2. Create a columns block with two columns and see a 2em gap on the frontend.

Screenshots, screen recording, code snippet

No response

Environment info

  • WordPress 6.0

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs Technical FeedbackNeeds testing from a developer perspective.[Block] ColumnsAffects the Columns Block[Status] DuplicateUsed to indicate that a current issue matches an existing one and can be closed

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions