Skip to content
Prev Previous commit
update the name of the controls and also add an experiment check just…
… in case
  • Loading branch information
scruffian committed Nov 6, 2025
commit ffa15292f5e536eeb9a22009449526fc59ef8d82
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ import { store as blockEditorStore } from '../../store';
import { ColorEdit } from '../../hooks/color';
import { ColorToolsPanel } from '../global-styles/color-panel';

function SectionBlockControls( { blockName, clientId, contentClientIds } ) {
function SectionBlockColorControls( {
blockName,
clientId,
contentClientIds,
} ) {
const settings = useBlockSettings( blockName );
const { updateBlockAttributes } = useDispatch( blockEditorStore );

Expand Down Expand Up @@ -74,13 +78,14 @@ const StylesTab = ( {
</PanelBody>
</div>
) }
{ isSectionBlock && (
<SectionBlockControls
blockName={ blockName }
clientId={ clientId }
contentClientIds={ contentClientIds }
/>
) }
{ isSectionBlock &&
window?.__experimentalContentOnlyPatternInsertion && (
<SectionBlockColorControls
blockName={ blockName }
clientId={ clientId }
contentClientIds={ contentClientIds }
/>
) }
{ ! isSectionBlock && (
<>
<InspectorControls.Slot
Expand Down
Loading