@@ -55,16 +55,10 @@ addFilter( 'stackable.global-settings.inspector', 'stackable/global-buttons-and-
5555 saveTimeout
5656 )
5757
58- // Add additional presets for setting margins and paddings to None
59- const nonePreset = {
60- name : 'None' ,
61- size : '0rem' ,
62- slug : 'none' ,
63- }
6458 const sizePresetMarks = usePresetControls ( 'spacingSizes' )
65- ?. getPresetMarks ( { additionalPresets : [ nonePreset ] } ) || null
66- const gapPresetMarks = usePresetControls ( 'spacingSizes ' ) ?. getPresetMarks ( ) || null
67- const borderRadiusPresetMarks = usePresetControls ( 'borderRadius' ) ?. getPresetMarks ( ) || null
59+ ?. getPresetMarks ( { addNonePreset : true } ) || null
60+ const borderRadiusPresetMarks = usePresetControls ( 'borderRadius ' )
61+ ?. getPresetMarks ( { addNonePreset : true } ) || null
6862
6963 return (
7064 < >
@@ -266,7 +260,7 @@ addFilter( 'stackable.global-settings.inspector', 'stackable/global-buttons-and-
266260 onChange = { value => onChange ( 'button-column-gap' , value , STATES . RESPONSIVE ) }
267261 hasTabletValue = { getHasDeviceValue ( 'button-column-gap' , 'tablet' ) }
268262 hasMobileValue = { getHasDeviceValue ( 'button-column-gap' , 'mobile' ) }
269- marks = { gapPresetMarks }
263+ marks = { sizePresetMarks }
270264 />
271265 < AdvancedRangeControl
272266 label = { __ ( 'Row Gap' , i18n ) }
@@ -278,7 +272,7 @@ addFilter( 'stackable.global-settings.inspector', 'stackable/global-buttons-and-
278272 onChange = { value => onChange ( 'button-row-gap' , value , STATES . RESPONSIVE ) }
279273 hasTabletValue = { getHasDeviceValue ( 'button-row-gap' , 'tablet' ) }
280274 hasMobileValue = { getHasDeviceValue ( 'button-row-gap' , 'mobile' ) }
281- marks = { gapPresetMarks }
275+ marks = { sizePresetMarks }
282276 />
283277 </ SectionSettings >
284278
@@ -340,7 +334,7 @@ addFilter( 'stackable.global-settings.inspector', 'stackable/global-buttons-and-
340334 onChange = { value => onChange ( 'icon-list-row-gap' , value , STATES . RESPONSIVE ) }
341335 hasTabletValue = { getHasDeviceValue ( 'icon-list-row-gap' , 'tablet' ) }
342336 hasMobileValue = { getHasDeviceValue ( 'icon-list-row-gap' , 'mobile' ) }
343- marks = { gapPresetMarks }
337+ marks = { sizePresetMarks }
344338 />
345339 < AdvancedRangeControl
346340 label = { __ ( 'Icon Gap' , i18n ) }
0 commit comments