diff --git a/packages/block-editor/src/components/colors-gradients/panel-color-gradient-settings.js b/packages/block-editor/src/components/colors-gradients/panel-color-gradient-settings.js index 008f590db2b4b7..36ef7ac2ac1ca0 100644 --- a/packages/block-editor/src/components/colors-gradients/panel-color-gradient-settings.js +++ b/packages/block-editor/src/components/colors-gradients/panel-color-gradient-settings.js @@ -89,7 +89,7 @@ export const PanelColorGradientSettingsInner = ( { children, settings, title, - showTitle, + showTitle = true, ...props } ) => { if ( @@ -121,13 +121,14 @@ export const PanelColorGradientSettingsInner = ( { /> ); + return ( { settings.map( ( setting, index ) => ( diff --git a/packages/block-editor/src/hooks/color-panel.js b/packages/block-editor/src/hooks/color-panel.js index 25bb3ec859c3f1..34cc486ee08dfc 100644 --- a/packages/block-editor/src/hooks/color-panel.js +++ b/packages/block-editor/src/hooks/color-panel.js @@ -2,6 +2,7 @@ * WordPress dependencies */ import { useState, useEffect } from '@wordpress/element'; +import { __ } from '@wordpress/i18n'; /** * Internal dependencies @@ -19,6 +20,7 @@ export default function ColorPanel( { settings, clientId, enableContrastChecking = true, + showTitle = true, } ) { const [ detectedBackgroundColor, setDetectedBackgroundColor ] = useState(); const [ detectedColor, setDetectedColor ] = useState(); @@ -54,9 +56,10 @@ export default function ColorPanel( { return ( { enableContrastChecking && (