SvgProxy not applied correctly in react-svgmt

Viewed 17

Imagine we have an svg file like:

 <svg>
  <path ...../>
  <path....../>
  <g>
   <path ...../>
   <path....../>
 </g>
 </svg>

On loading the svg like this

    <SvgLoader>
        <SvgProxy selector="path" fill="red" />
        <SvgProxy selector="g" fill="blue" />
    <SvgLoader/>

we expect that first all the paths will turn red, then all the groups which means path2 and path4 will turn blue. But in this case blue colour is not applied ie. path properties are never overridden by another group properties

0 Answers
Related