You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var jssSheet1 = jss.sheet() // returns a jss instance with a new sheet created on the document
var jssSheet2 = jss.sheet()
jssSheet2.set('#A', {
color: 'red'
})
jssSheet1 .set('#A', {
color: 'green'
})
But I want the results to be that #A remains red. Is there any way I can create a style later in time that is overridden by a style that was created earlier in time?
The text was updated successfully, but these errors were encountered:
It seems like even if you create two different stylesheets by craeting two separate jss objects, rules still append into the same stylesheet for some reason.
I've answered my question there btw. I'm going to open another issue to not lazily create the sheet - cause that prevent reasonable behavior with different jss instances when you're trying to work with different sheets.
I want to do something like this:
But I want the results to be that #A remains red. Is there any way I can create a style later in time that is overridden by a style that was created earlier in time?
The text was updated successfully, but these errors were encountered: