diff --git a/assets/js/blocks/featured-items/featured-category/block.json b/assets/js/blocks/featured-items/featured-category/block.json index ee7b908a817..1a965571649 100644 --- a/assets/js/blocks/featured-items/featured-category/block.json +++ b/assets/js/blocks/featured-items/featured-category/block.json @@ -99,14 +99,6 @@ "showDesc": { "type": "boolean", "default": true - }, - "style": { - "type": "object", - "default": { - "color": { - "text": "#ffffff" - } - } } }, "textdomain": "woo-gutenberg-products-block", diff --git a/assets/js/blocks/featured-items/featured-category/editor.scss b/assets/js/blocks/featured-items/featured-category/editor.scss index 9b0eb3b1329..3e70ecbf6e9 100644 --- a/assets/js/blocks/featured-items/featured-category/editor.scss +++ b/assets/js/blocks/featured-items/featured-category/editor.scss @@ -4,3 +4,7 @@ @extend %with-media-controls; @extend %with-resizable-box; } + +.editor-styles-wrapper .wp-block-woocommerce-featured-category { + @extend %wp-block-featured-item; +} diff --git a/assets/js/blocks/featured-items/featured-product/block.json b/assets/js/blocks/featured-items/featured-product/block.json index 64a1b70cc00..515de7a4878 100644 --- a/assets/js/blocks/featured-items/featured-product/block.json +++ b/assets/js/blocks/featured-items/featured-product/block.json @@ -105,14 +105,6 @@ "showPrice": { "type": "boolean", "default": true - }, - "style": { - "type": "object", - "default": { - "color": { - "text": "#ffffff" - } - } } }, "textdomain": "woo-gutenberg-products-block", diff --git a/assets/js/blocks/featured-items/featured-product/editor.scss b/assets/js/blocks/featured-items/featured-product/editor.scss index 39553be112c..6f79ffc97c9 100644 --- a/assets/js/blocks/featured-items/featured-product/editor.scss +++ b/assets/js/blocks/featured-items/featured-product/editor.scss @@ -8,3 +8,7 @@ margin-bottom: 16px; } } + +.editor-styles-wrapper .wp-block-woocommerce-featured-product { + @extend %wp-block-featured-item; +}