Skip to content

Commit

Permalink
Background supports: add default controls supports (WordPress#68085)
Browse files Browse the repository at this point in the history
Co-authored-by: ramonjd <[email protected]>
Co-authored-by: aaronrobertshaw <[email protected]>
  • 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

0 comments on commit fad67dc

Please sign in to comment.