From eb8bfedcf1db2b73743bc9a8cb4813e90ebdd4d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Albert=20Juh=C3=A9=20Lluveras?= Date: Wed, 30 Mar 2022 10:57:06 +0200 Subject: [PATCH] Remove button aligment from Featured Product and Featured Category blocks (https://github.com/woocommerce/woocommerce-blocks/pull/6156) --- .../assets/js/blocks/featured-category/block.js | 5 +++-- .../assets/js/blocks/featured-product/block.js | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/plugins/woocommerce-blocks/assets/js/blocks/featured-category/block.js b/plugins/woocommerce-blocks/assets/js/blocks/featured-category/block.js index 5817f5e5b91..17e5b0aa4aa 100644 --- a/plugins/woocommerce-blocks/assets/js/blocks/featured-category/block.js +++ b/plugins/woocommerce-blocks/assets/js/blocks/featured-category/block.js @@ -271,7 +271,9 @@ const FeaturedCategory = ( { template={ [ [ 'core/buttons', - {}, + { + layout: { type: 'flex', justifyContent: 'center' }, + }, [ [ 'core/button', @@ -281,7 +283,6 @@ const FeaturedCategory = ( { 'woo-gutenberg-products-block' ), url: category.permalink, - align: 'center', }, ], ], diff --git a/plugins/woocommerce-blocks/assets/js/blocks/featured-product/block.js b/plugins/woocommerce-blocks/assets/js/blocks/featured-product/block.js index d463958986b..2cb9920b967 100644 --- a/plugins/woocommerce-blocks/assets/js/blocks/featured-product/block.js +++ b/plugins/woocommerce-blocks/assets/js/blocks/featured-product/block.js @@ -368,7 +368,9 @@ const FeaturedProduct = ( { template={ [ [ 'core/buttons', - {}, + { + layout: { type: 'flex', justifyContent: 'center' }, + }, [ [ 'core/button', @@ -378,7 +380,6 @@ const FeaturedProduct = ( { 'woo-gutenberg-products-block' ), url: product.permalink, - align: 'center', }, ], ],