Open itekhi opened 3 years ago
Noticed that replacing fill attribute in svg works only for the last SVG inside one screen/file...
fill
I have 2 SVGs in one file here. And I have experienced this issue too: #97. If SVG has fill-rule="evenodd" in it, it doesn't work at all.
.svgrrc
{ "replaceAttrValues": { "#000": "{props.fill}" } }
SVGs(they are the same, just the first paths are different
SVGs
path
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 88.55"> <path d="M0,51.47a4.13,..." transform="translate(0 -5.72)" fill="#000"/> <path d="M69.06,54.24..." transform="translate(0 -5.72)" fill="#000"/> <path d="M55.72,94.2..." transform="translate(0 -5.72)" fill="#000"/> </svg>
@Shaffle1 Would you be able to provide some example app with the problem that I could try out?
Noticed that replacing
fill
attribute in svg works only for the last SVG inside one screen/file...I have 2 SVGs in one file here. And I have experienced this issue too: #97. If SVG has fill-rule="evenodd" in it, it doesn't work at all.
.svgrrc
SVGs
(they are the same, just the firstpath
s are different