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

Commit

Permalink
Product Elements [Variations]: Change block icon colors to match the …
Browse files Browse the repository at this point in the history
…core blocks. Fixes #8084
  • Loading branch information
danieldudzic committed Jan 11, 2023
1 parent 5494f5d commit 522e0bc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
} );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
} );
Expand Down

0 comments on commit 522e0bc

Please sign in to comment.