From 2ca2287cb82f173311fbf2b46eb9104a335067ba Mon Sep 17 00:00:00 2001 From: Luigi Teschio Date: Wed, 26 Apr 2023 14:16:54 +0200 Subject: [PATCH] Update icon and description for the Product Meta block (https://github.com/woocommerce/woocommerce-blocks/pull/9243) * Update icon and description for the Product Meta block * fix alt --- .../blocks/product-elements/product-meta/block.json | 2 +- .../blocks/product-elements/product-meta/index.tsx | 11 +++++++++-- .../images/blocks/product-meta/product-meta-icon.svg | 6 ++++++ 3 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 plugins/woocommerce-blocks/images/blocks/product-meta/product-meta-icon.svg diff --git a/plugins/woocommerce-blocks/assets/js/atomic/blocks/product-elements/product-meta/block.json b/plugins/woocommerce-blocks/assets/js/atomic/blocks/product-elements/product-meta/block.json index f2d22b4f6b2..5773190eb1c 100644 --- a/plugins/woocommerce-blocks/assets/js/atomic/blocks/product-elements/product-meta/block.json +++ b/plugins/woocommerce-blocks/assets/js/atomic/blocks/product-elements/product-meta/block.json @@ -3,7 +3,7 @@ "version": "1.0.0", "title": "Product Meta", "icon": "product", - "description": "Display Product Meta", + "description": "Display a product’s SKU, categories, tags, and more.", "category": "woocommerce", "supports": { "align": true, diff --git a/plugins/woocommerce-blocks/assets/js/atomic/blocks/product-elements/product-meta/index.tsx b/plugins/woocommerce-blocks/assets/js/atomic/blocks/product-elements/product-meta/index.tsx index 626d15ea1ff..b2090d9f151 100644 --- a/plugins/woocommerce-blocks/assets/js/atomic/blocks/product-elements/product-meta/index.tsx +++ b/plugins/woocommerce-blocks/assets/js/atomic/blocks/product-elements/product-meta/index.tsx @@ -1,8 +1,8 @@ /** * External dependencies */ -import { box as icon } from '@wordpress/icons'; import { registerBlockSingleProductTemplate } from '@woocommerce/atomic-utils'; +import { WC_BLOCKS_IMAGE_URL } from '@woocommerce/block-settings'; /** * Internal dependencies @@ -18,7 +18,14 @@ registerBlockSingleProductTemplate( { blockSettings: { edit, save, - icon, + icon: { + src: () => ( + + ), + }, ancestor: [ 'woocommerce/single-product' ], }, } ); diff --git a/plugins/woocommerce-blocks/images/blocks/product-meta/product-meta-icon.svg b/plugins/woocommerce-blocks/images/blocks/product-meta/product-meta-icon.svg new file mode 100644 index 00000000000..18df94d417e --- /dev/null +++ b/plugins/woocommerce-blocks/images/blocks/product-meta/product-meta-icon.svg @@ -0,0 +1,6 @@ + + + + + +