Block Supports: Add background-clip block support UI#77142
Draft
aaronrobertshaw wants to merge 1 commit intoadd/background-clip-support-without-uifrom
Draft
Block Supports: Add background-clip block support UI#77142aaronrobertshaw wants to merge 1 commit intoadd/background-clip-support-without-uifrom
aaronrobertshaw wants to merge 1 commit intoadd/background-clip-support-without-uifrom
Conversation
Introduces editor UI for the backgroundClip block support: - Adds BackgroundClipControl component with visual previews for border-box, padding-box, content-box, and text clip values - Integrates text gradient support into the color panel's text section with proper ownership boundaries between color and background panels - Updates reset logic in both panels to respect text gradient state - Opts heading and paragraph blocks into backgroundClip support - Adds exact match to contrast checker e2e tests for renamed Background panel label Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Size Change: +2.69 kB (+0.03%) Total Size: 7.74 MB 📦 View Changed
ℹ️ View Unchanged
|
|
Flaky tests detected in 4b983eb. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/24131694168
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What?
See #76525
Based on #77141
Adds editor UI for the
backgroundClipblock support, building on the infrastructure introduced in #77141.Why?
The backgroundClip infrastructure landed without any UI so that design decisions could be finalized separately. This PR adds the editor controls needed to actually use the feature, including a dedicated clip control in the background panel and text gradient support in the color panel.
How?
BackgroundClipControlcomponent with visual previews for border-box, padding-box, content-box, and text clip values.textvalue when text gradient support is active (since the color panel owns that).backgroundClip: text.backgroundClip,backgroundImage, andgradientsupport.BackgroundInspectorControlreset filter to preserve text gradient state while still cleaning up thehas-backgroundclass and legacycolor.gradientvalues.backgroundClipsettings in the global styles block screen when the block declares support.exact: trueto contrast checker e2e tests to disambiguate the renamed "Background" button.Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast
Use of AI Tools
Claude Code (Claude Opus 4.6) was used to assist with splitting this work from a larger PR and drafting the PR description.