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

Idea: rule.removeFrom() #36

Closed
trusktr opened this issue Dec 28, 2014 · 1 comment
Closed

Idea: rule.removeFrom() #36

trusktr opened this issue Dec 28, 2014 · 1 comment
Labels
idea What if we turn JSS into styled-components?

Comments

@trusktr
Copy link

trusktr commented Dec 28, 2014

In reference to #35, perhaps a way to remove those classes, specifying whether it affects the classname or inline styles:

rule.removeFrom(el) // removes the rule.className
rule.removeFrom(el, true) // removes from inline styles
@kof
Copy link
Member

kof commented Dec 28, 2014

same here, if I have added a class name before, I can remove it the same way.

In case I apply styles inline and want to revert it, I need a good real world use case.

@kof kof added the idea What if we turn JSS into styled-components? label Dec 28, 2014
@kof kof closed this as completed Sep 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
idea What if we turn JSS into styled-components?
Projects
None yet
Development

No branches or pull requests

2 participants