Skip to content
This repository has been archived by the owner on Mar 21, 2019. It is now read-only.

Disable suffix by default #5

Open
mattmischuk opened this issue Jul 28, 2016 · 3 comments
Open

Disable suffix by default #5

mattmischuk opened this issue Jul 28, 2016 · 3 comments

Comments

@mattmischuk
Copy link

If you use this component with postcss-local-modules-by-default it clashes with this suffix, I'm not sure as to the reason why this component has this enabled by default. Seems like something you would let the user configure optionally.

@MoOx
Copy link
Owner

MoOx commented Jul 28, 2016

What is your exact problem? Even if a non configurable css class is added, you have option to add some others.

@mattmischuk
Copy link
Author

My problem is if you are using this module you can't suffix your tokenized classes to have -svg.

eg.

/* Source */

.icon .icon-svg { ... }

/* Results in */

._3qOz7o9UPD9GOtDjAK .KhXtXYu-YdxXx5mi8K-RT { ... }

So all my components look like this:

<SVGInline svg={icon} classSuffix="" />

@MoOx
Copy link
Owner

MoOx commented Jul 28, 2016

Feel free to make a PR to provides another class name instead of the suffix.

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

No branches or pull requests

2 participants