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

Commit

Permalink
Remove fill attributes on SVG
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
danielwrobert committed Dec 7, 2022
1 parent 34f1691 commit a697229
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion assets/css/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
9 changes: 3 additions & 6 deletions assets/js/icons/library/mini-cart-alt.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import { SVG } from '@wordpress/primitives';

const miniCartAlt = (
<SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none">
<SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<defs>
<mask
id="mask"
Expand All @@ -27,12 +27,9 @@ const miniCartAlt = (
</mask>
</defs>
<g mask="url(#mask)">
<path
d="M2,4H0V6H2ZM2,2V0H0V2ZM4,4l1.8-.9L5.3,2H4Zm3.6,7.6,1.7,1,.5-.9-.4-1ZM6.3,14l-1.8-.9h0ZM20,17v2h2V17Zm0-2h2V13H20ZM8,15,6.2,14,4.6,17H8Zm1.1-2V11H7.9l-.6,1Zm9.2-1-1.8-1h0Zm3.6-6.5-1.8-1h0ZM6.2,4l-1.8.9L4.9,6H6.2ZM5.3,2l1.8-.9L6.5,0H5.3ZM4,4V2H0V4ZM4,2H2V6H4Zm5.4,8.7L5.8,3.1,2.2,4.9l3.6,7.5ZM8,15l1.3-2.4-3.5-2L4.5,13.1Zm0,0H8L4.5,13.1A4,4,0,0,0,8,19Zm12,0H8v4H20Zm-2,0v2h4V15ZM8,17H20V13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