Comments (4)
I couldn't reproduce the error: http://jsfiddle.net/Lqdtvy2z/.
Can you provide a failed test case?
from jss.
Hi @dasilvacontin - check the console of your fiddle - jss
is not being defined because github is serving the file with the wrong MIME type, so whilst it looks like the example is working as intended, the rule never gets set in the first place.
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 remove
does not work when passed a selector. I can repro this in my own environment too.
from jss.
Wow, what a fail, thanks for the heads up @redders6600! It would be nice to fix this, indeed.
from jss.
I looked into this and worked out what the issue is - the getRules
function forces the selector to lowercase. This is fine for elements, but classes can have uppercase letters (as in this example).
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 ::
pseudoselector syntax when passing to remove
instead of :
.
from jss.
Related Issues (20)
- jss cannot read external css rules HOT 2
- Some fixes HOT 1
- pseudo selector such as ::before and ::after support HOT 1
- Sheet does not print out! HOT 2
- !important? HOT 1
- How to reset to Json Object format HOT 2
- Please add a license HOT 4
- Publish on npm HOT 7
- Missing LICENSE file HOT 1
- jss namespace on bower
- Css background values with vendor prefixes HOT 2
- Cannot Set Important Rules for Background Color Rules HOT 1
- Is there a way to create a style in one stylesheet that's overridden by styles in another stylesheet? HOT 2
- Create the sheet on construction of jss instance
- @ selectors / keyframes? HOT 1
- jss.get() and media queries
- storing selector in a variable doesn't seem to work HOT 1
- Is this on a cdn anywhere?
- Integrate with Angular
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jss.