When I use the SvgLoaderSelectElement (from the react-svg-pan-zoom-loader library) with a selector and set fill or stroke, this is ignored because the style mentioned above apparently overrides it. It works with other props such as visibility, since they are not set globally in the SVG.
If you disagree that this is the way it should behave, are there any hacks I can apply to get it how I want?
My SVG file has this style:
When I use the
SvgLoaderSelectElement
(from the react-svg-pan-zoom-loader library) with a selector and set fill or stroke, this is ignored because the style mentioned above apparently overrides it. It works with other props such asvisibility
, since they are not set globally in the SVG.If you disagree that this is the way it should behave, are there any hacks I can apply to get it how I want?