Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SvgLoaderSelectElement properties doesn't override SVG default CSS #196

Open
olavblj opened this issue Mar 24, 2021 · 0 comments
Open

SvgLoaderSelectElement properties doesn't override SVG default CSS #196

olavblj opened this issue Mar 24, 2021 · 0 comments

Comments

@olavblj
Copy link

olavblj commented Mar 24, 2021

My SVG file has this style:

    <style type="text/css">
        <![CDATA[
        path {
            stroke: #222222;
            fill: #444444;
        }
    ]]>
    </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 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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant