Fix icon color when block is selected in List View (https://github.com/woocommerce/woocommerce-blocks/pull/10652)

This commit is contained in:
Alexandre Lara 2023-08-18 15:03:53 -03:00 committed by GitHub
parent 0054d24f5c
commit 94c5dcefce
2 changed files with 36 additions and 2 deletions

View File

@ -0,0 +1,33 @@
/**
* External dependencies
*/
import { SVG, Rect } from '@wordpress/primitives';
export const queryPaginationIcon = (
<SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<Rect
x="4"
y="10.5"
width="6"
height="3"
rx="1.5"
fill="currentColor"
/>
<Rect
x="12"
y="10.5"
width="3"
height="3"
rx="1.5"
fill="currentColor"
/>
<Rect
x="17"
y="10.5"
width="3"
height="3"
rx="1.5"
fill="currentColor"
/>
</SVG>
);

View File

@ -3,13 +3,14 @@
*/
import { registerBlockType } from '@wordpress/blocks';
import { isFeaturePluginBuild } from '@woocommerce/block-settings';
import { Icon, queryPagination } from '@wordpress/icons';
import { Icon } from '@wordpress/icons';
/**
* Internal dependencies
*/
import metadata from './block.json';
import edit from './edit';
import { queryPaginationIcon } from './icon';
import './style.scss';
const featurePluginSupport = {
@ -32,7 +33,7 @@ registerBlockType( metadata, {
icon: {
src: (
<Icon
icon={ queryPagination }
icon={ queryPaginationIcon }
className="wc-block-editor-components-block-icon"
/>
),