From 75bba1d55d562ce4fcafff1e6e6d81a789b18feb Mon Sep 17 00:00:00 2001 From: Daniel Dudzic Date: Mon, 11 Sep 2023 13:37:27 +0200 Subject: [PATCH] Product Gallery: Lock the Sale Badge and the Next/Prev Buttons (https://github.com/woocommerce/woocommerce-blocks/pull/10869) * Fix "On sale" badge class for shop * Add class to sale badge * Apply styleProps.styles to elements using them * Product Gallery: Lock the Sale Badge and the Next/Prev Buttons --- .../assets/js/blocks/product-gallery/edit.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/woocommerce-blocks/assets/js/blocks/product-gallery/edit.tsx b/plugins/woocommerce-blocks/assets/js/blocks/product-gallery/edit.tsx index da185ffeebd..d9fb633e1b1 100644 --- a/plugins/woocommerce-blocks/assets/js/blocks/product-gallery/edit.tsx +++ b/plugins/woocommerce-blocks/assets/js/blocks/product-gallery/edit.tsx @@ -61,6 +61,7 @@ const TEMPLATE: InnerBlockTemplate[] = [ }, }, }, + lock: { move: true }, }, ], [ @@ -70,6 +71,7 @@ const TEMPLATE: InnerBlockTemplate[] = [ type: 'flex', verticalAlignment: 'bottom', }, + lock: { move: true, remove: true }, }, ], ],