Product Elements [Variations]: Change block icon colors to match the core blocks. Fixes woocommerce/woocommerce-blocks#8084 (https://github.com/woocommerce/woocommerce-blocks/pull/8155)
This commit is contained in:
parent
c0f33efb1c
commit
792c4a84db
|
@ -2,11 +2,12 @@
|
|||
* External dependencies
|
||||
*/
|
||||
import { isFeaturePluginBuild } from '@woocommerce/block-settings';
|
||||
import { Icon } from '@wordpress/components';
|
||||
import {
|
||||
BLOCK_DESCRIPTION,
|
||||
BLOCK_ICON,
|
||||
BLOCK_TITLE,
|
||||
} from '@woocommerce/atomic-blocks/product-elements/summary/constants';
|
||||
import { page } from '@wordpress/icons';
|
||||
|
||||
/**
|
||||
* Internal dependencies
|
||||
|
@ -19,7 +20,7 @@ export const VARIATION_NAME = 'woocommerce/product-query/product-summary';
|
|||
if ( isFeaturePluginBuild() ) {
|
||||
registerElementVariation( CORE_NAME, {
|
||||
blockDescription: BLOCK_DESCRIPTION,
|
||||
blockIcon: BLOCK_ICON,
|
||||
blockIcon: <Icon icon={ page } />,
|
||||
blockTitle: BLOCK_TITLE,
|
||||
variationName: VARIATION_NAME,
|
||||
} );
|
||||
|
|
|
@ -2,11 +2,12 @@
|
|||
* External dependencies
|
||||
*/
|
||||
import { isFeaturePluginBuild } from '@woocommerce/block-settings';
|
||||
import { Icon } from '@wordpress/components';
|
||||
import {
|
||||
BLOCK_DESCRIPTION,
|
||||
BLOCK_ICON,
|
||||
BLOCK_TITLE,
|
||||
} from '@woocommerce/atomic-blocks/product-elements/title/constants';
|
||||
import { heading } from '@wordpress/icons';
|
||||
|
||||
/**
|
||||
* Internal dependencies
|
||||
|
@ -19,7 +20,7 @@ export const VARIATION_NAME = 'woocommerce/product-query/product-title';
|
|||
if ( isFeaturePluginBuild() ) {
|
||||
registerElementVariation( CORE_NAME, {
|
||||
blockDescription: BLOCK_DESCRIPTION,
|
||||
blockIcon: BLOCK_ICON,
|
||||
blockIcon: <Icon icon={ heading } />,
|
||||
blockTitle: BLOCK_TITLE,
|
||||
variationName: VARIATION_NAME,
|
||||
} );
|
||||
|
|
Loading…
Reference in New Issue