Skip to content

Commit 441a7b5

Browse files
t-hamanoMamaduka
andauthored
Spacer: Add dropdown menu props to Tools Panel component (#68761)
Co-authored-by: t-hamano <[email protected]> Co-authored-by: Mamaduka <[email protected]>
1 parent 0586312 commit 441a7b5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/block-library/src/spacer/controls.js

+4
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import { View } from '@wordpress/primitives';
2424
*/
2525
import { unlock } from '../lock-unlock';
2626
import { MIN_SPACER_SIZE } from './constants';
27+
import { useToolsPanelDropdownMenuProps } from '../utils/hooks';
2728

2829
const { useSpacingSizes } = unlock( blockEditorPrivateApis );
2930

@@ -93,6 +94,8 @@ export default function SpacerControls( {
9394
width,
9495
isResizing,
9596
} ) {
97+
const dropdownMenuProps = useToolsPanelDropdownMenuProps();
98+
9699
return (
97100
<InspectorControls>
98101
<ToolsPanel
@@ -103,6 +106,7 @@ export default function SpacerControls( {
103106
height: '100px',
104107
} );
105108
} }
109+
dropdownMenuProps={ dropdownMenuProps }
106110
>
107111
{ orientation === 'horizontal' && (
108112
<ToolsPanelItem

0 commit comments

Comments
 (0)