Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Update icon and description for the Product Meta block (#9243)
Browse files Browse the repository at this point in the history
* Update icon and description for the Product Meta block

* fix alt
  • Loading branch information
gigitux authored Apr 26, 2023
1 parent a75a68a commit 157f49b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
11 changes: 9 additions & 2 deletions assets/js/atomic/blocks/product-elements/product-meta/index.tsx
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -18,7 +18,14 @@ registerBlockSingleProductTemplate( {
blockSettings: {
edit,
save,
icon,
icon: {
src: () => (
<img
src={ `${ WC_BLOCKS_IMAGE_URL }/blocks/product-meta/product-meta-icon.svg` }
alt=""
/>
),
},
ancestor: [ 'woocommerce/single-product' ],
},
} );
6 changes: 6 additions & 0 deletions images/blocks/product-meta/product-meta-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 157f49b

Please sign in to comment.