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

replace ! with _ as classNames do not get escaped #44

Merged
merged 2 commits into from
Feb 10, 2017
Merged

replace ! with _ as classNames do not get escaped #44

merged 2 commits into from
Feb 10, 2017

Conversation

marudor
Copy link
Contributor

@marudor marudor commented Jan 2, 2017

If you use !important in a style the resulting className includes the Exclamation mark (!)
An exclamation mark is valid within a css class name, but needs escaping.
As I saw you replaced some other stuff before I went with replacing it with a _ instead of escaping it.
If wanted I could change the createStyle function to escape properly. But I think this is easier.

Please release once you've merged as this is blocking for the usage within my company.

@jxnblk
Copy link
Collaborator

jxnblk commented Feb 10, 2017

Thanks! I'm not sure the simple string replacement is the best solution over time, but this LGTM 😎

@jxnblk jxnblk merged commit 37d8157 into cxs-css:master Feb 10, 2017
@jfaissolle jfaissolle mentioned this pull request May 4, 2017
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

Successfully merging this pull request may close these issues.

2 participants