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

Add CSS class name namespacing #42

Closed
jkphl opened this issue Jan 15, 2015 · 5 comments
Closed

Add CSS class name namespacing #42

jkphl opened this issue Jan 15, 2015 · 5 comments
Assignees

Comments

@jkphl
Copy link
Collaborator

jkphl commented Jan 15, 2015

It would be desirable to not only have ID namespacing but also prefix CSS class names in SVGs with a custom string to avoid clashes. See #41.

@jkphl
Copy link
Collaborator Author

jkphl commented Jul 18, 2015

Available as of release 1.2.26

@jkphl jkphl closed this as completed Jul 18, 2015
@tomaskikutis
Copy link

Can you make it configurable ? I want to fill svg in multiple colors, I add classes for paths and suddenly the class names are different than I named.

@jkphl
Copy link
Collaborator Author

jkphl commented Aug 13, 2015

Hi @tomaskikutis,

please have a look at the documentation. You can disable CSS class namespacing at any time by setting svg.namespaceClassnames = false.

Cheers,
Joschi

@tomaskikutis
Copy link

@jkphl Thanks, I didn't noticed :)

@jkphl
Copy link
Collaborator Author

jkphl commented Aug 13, 2015

@tomaskikutis You're welcome! ;)

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

No branches or pull requests

2 participants