From c952340f06070a0f9cb96d4223958030a6b0dd9b Mon Sep 17 00:00:00 2001 From: Gabriel de Tassigny Date: Tue, 31 Mar 2026 15:05:22 +0200 Subject: [PATCH 1/6] Remove deprecation warnings from gallery settings --- src/js/components/featured-image.js | 1 + src/js/components/video.js | 1 + src/js/gallery-block/controls.js | 40 ++++++++++++++++++++++++----- 3 files changed, 35 insertions(+), 7 deletions(-) diff --git a/src/js/components/featured-image.js b/src/js/components/featured-image.js index a5735a016..61058c93d 100644 --- a/src/js/components/featured-image.js +++ b/src/js/components/featured-image.js @@ -19,6 +19,7 @@ let FeaturedTransformationsToggle = ( props ) => { checked={ props.overwrite_featured_transformations } onChange={ ( value ) => props.setOverwrite( value ) } className="cloudinary-overwrite-transformations" + __nextHasNoMarginBottom={ true } /> ) } diff --git a/src/js/components/video.js b/src/js/components/video.js index a5ea6b95f..7aecaa677 100644 --- a/src/js/components/video.js +++ b/src/js/components/video.js @@ -78,6 +78,7 @@ const TransformationsToggle = ( props ) => { onChange={ ( value ) => { setAttributes( { overwrite_transformations: value } ); } } + __nextHasNoMarginBottom={ true } /> ); diff --git a/src/js/gallery-block/controls.js b/src/js/gallery-block/controls.js index 6f812903f..c57be0386 100644 --- a/src/js/gallery-block/controls.js +++ b/src/js/gallery-block/controls.js @@ -181,6 +181,8 @@ const Controls = ( { attributes, setAttributes, colors } ) => { onChange={ ( value ) => setAttributes( { transition: value } ) } + __next40pxDefaultSize={ true } + __nextHasNoMarginBottom={ true } /> ) } @@ -195,6 +197,8 @@ const Controls = ( { attributes, setAttributes, colors } ) => { onChange={ ( value ) => setAttributes( { aspectRatio: value } ) } + __next40pxDefaultSize={ true } + __nextHasNoMarginBottom={ true } />

@@ -209,7 +213,8 @@ const Controls = ( { attributes, setAttributes, colors } ) => { { RESIZE_CROP.map( ( type ) => (