Fix icon color when block is selected in List View (https://github.com/woocommerce/woocommerce-blocks/pull/10652)
This commit is contained in:
parent
0054d24f5c
commit
94c5dcefce
|
@ -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>
|
||||
);
|
|
@ -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"
|
||||
/>
|
||||
),
|
||||
|
|
Loading…
Reference in New Issue