Skip to content

Global styles from inlined svg conflicting #44

@michaeljonathanblack

Description

@michaeljonathanblack

Is there a way to apply classes in a way that's scoped to the svg instead of as global classes, using this tool? The provided SVG files from our designers all have the same global classes, so they all conflict.

Or is this just an issue we should resolve by modifying the svg by hand? It seems like we'll inevitably run into this problem again.

Edit: It appears inlineStyles is the plugin necessary, but babel-plugin-inline-react-svg is using an old version of svgo which doesn't support it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions