Skip to content

Commit

Permalink
Background supports: add default controls supports (#68085)
Browse files Browse the repository at this point in the history
Co-authored-by: ramonjd <ramonopoly@git.wordpress.org>
Co-authored-by: aaronrobertshaw <aaronrobertshaw@git.wordpress.org>
  • Loading branch information
3 people authored Dec 18, 2024
1 parent 4170c23 commit fad67dc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/block-editor/src/hooks/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,11 @@ export function BackgroundImagePanel( {
},
};

const defaultControls = getBlockSupport( name, [
BACKGROUND_SUPPORT_KEY,
'defaultControls',
] );

return (
<StylesBackgroundPanel
inheritedValue={ inheritedValue }
Expand All @@ -185,6 +190,7 @@ export function BackgroundImagePanel( {
defaultValues={ BACKGROUND_BLOCK_DEFAULT_VALUES }
settings={ updatedSettings }
onChange={ onChange }
defaultControls={ defaultControls }
value={ style }
/>
);
Expand Down

1 comment on commit fad67dc

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in fad67dc.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/12403280669
📝 Reported issues:

Please sign in to comment.