-
Notifications
You must be signed in to change notification settings - Fork 54
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
class selector does not seem to work #29
Comments
I couldn't reproduce the error: http://jsfiddle.net/Lqdtvy2z/. Can you provide a failed test case? |
Hi @dasilvacontin - check the console of your fiddle - I replaced the reference to the github resource with a link that does get served with the right MIME type using rawgit, and this is the result. As you can see |
Wow, what a fail, thanks for the heads up @redders6600! It would be nice to fix this, indeed. |
I looked into this and worked out what the issue is - the To workaround with the current code, use styles that use all lowercase characters, but I guess this is something that should be updated in JSS. Similarly, ensure you use the |
If I call:
jss.set('.myClass', {
'display': 'none'
});
the css is updated properly , and the display elements are updated as expected.
However, calling
jss.remove('.myClass');
has no effect.
Calling
jss.remove();
works though.
The .myClass style is not defined anywhere. If I do define it in a .css file included on the page, the behaviour is the same. If I use an element type selector instead of a class selector, remove seems to work as would be expected.
The text was updated successfully, but these errors were encountered: