File tree 1 file changed +4
-0
lines changed
packages/block-library/src/spacer
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ import { View } from '@wordpress/primitives';
24
24
*/
25
25
import { unlock } from '../lock-unlock' ;
26
26
import { MIN_SPACER_SIZE } from './constants' ;
27
+ import { useToolsPanelDropdownMenuProps } from '../utils/hooks' ;
27
28
28
29
const { useSpacingSizes } = unlock ( blockEditorPrivateApis ) ;
29
30
@@ -93,6 +94,8 @@ export default function SpacerControls( {
93
94
width,
94
95
isResizing,
95
96
} ) {
97
+ const dropdownMenuProps = useToolsPanelDropdownMenuProps ( ) ;
98
+
96
99
return (
97
100
< InspectorControls >
98
101
< ToolsPanel
@@ -103,6 +106,7 @@ export default function SpacerControls( {
103
106
height : '100px' ,
104
107
} ) ;
105
108
} }
109
+ dropdownMenuProps = { dropdownMenuProps }
106
110
>
107
111
{ orientation === 'horizontal' && (
108
112
< ToolsPanelItem
You can’t perform that action at this time.
0 commit comments