From 96efc146c4e483fe76d6d6ee1c686d6d2406de90 Mon Sep 17 00:00:00 2001 From: "Daniel W. Robert" Date: Wed, 23 Nov 2022 14:19:34 -0500 Subject: [PATCH 1/2] Update hex color val to currentColor. --- assets/css/editor.scss | 2 +- assets/js/icons/library/mini-cart-alt.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/css/editor.scss b/assets/css/editor.scss index 301a9562dce..dc876c3cd46 100644 --- a/assets/css/editor.scss +++ b/assets/css/editor.scss @@ -33,7 +33,7 @@ } } -svg.wc-block-editor-components-block-icon { +:not(.site-editor-php) svg.wc-block-editor-components-block-icon { color: $studio-woocommerce-purple-50; } diff --git a/assets/js/icons/library/mini-cart-alt.tsx b/assets/js/icons/library/mini-cart-alt.tsx index 2e57b357f0d..fc095bfc77a 100644 --- a/assets/js/icons/library/mini-cart-alt.tsx +++ b/assets/js/icons/library/mini-cart-alt.tsx @@ -29,10 +29,10 @@ const miniCartAlt = ( - + ); From 5cfa6b4987038671ac97f12678b30e023c00c92a Mon Sep 17 00:00:00 2001 From: "Daniel W. Robert" Date: Wed, 7 Dec 2022 11:10:49 -0500 Subject: [PATCH 2/2] Remove fill attributes on SVG Having the fill attributes explicitly defined on the SVG was setting the icon to purple in unexpected cases. This also reverts the quick attempt to adjust CSS selector for a fix, as it was the incorrect approach. --- assets/css/editor.scss | 2 +- assets/js/icons/library/mini-cart-alt.tsx | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/assets/css/editor.scss b/assets/css/editor.scss index dc876c3cd46..301a9562dce 100644 --- a/assets/css/editor.scss +++ b/assets/css/editor.scss @@ -33,7 +33,7 @@ } } -:not(.site-editor-php) svg.wc-block-editor-components-block-icon { +svg.wc-block-editor-components-block-icon { color: $studio-woocommerce-purple-50; } diff --git a/assets/js/icons/library/mini-cart-alt.tsx b/assets/js/icons/library/mini-cart-alt.tsx index fc095bfc77a..23dbbb25ca5 100644 --- a/assets/js/icons/library/mini-cart-alt.tsx +++ b/assets/js/icons/library/mini-cart-alt.tsx @@ -4,7 +4,7 @@ import { SVG } from '@wordpress/primitives'; const miniCartAlt = ( - + - + - + );