Skip to content

Opt blocks into background.gradient and dimensions.minWidth #17

Description

@Schmandarine

Both are one-line block.json opt-ins.

background.gradient renders through the background-image longhand, so a gradient and an image can finally coexist in one declaration — which retires the hand-rolled overlay workaround in the hero pattern. safecss_filter_attr() already permits the combined value.

"supports": {
  "background": { "backgroundImage": true, "gradient": true }
}
  • Add the supports to the example block, document in /create-block
  • Delete the overlay workaround once the native path is confirmed
  • Add dimensionSizes presets so minWidth is token-driven rather than freehand

Needs WP 7.1.

Agent surface

/create-block must know about the new supports or it will never write them → needs a @brmbh/cli release.


Context: vault .../Development/WP-7.1-Impact.md

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    blocksACF block factorygood first issueGood for newcomerswp-7.1WordPress 7.1 release cycle

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions