@xiaofan2406 commented on Fri Mar 17 2017
container: {
color: props => props.color, // this works
'&:before' : {
content: 'text',
color: props => props.color // this doesn't
}
}
Did i miss something?
@kof commented on Fri Mar 17 2017
Yeah, works right now only for top level rules. Lets keep this issue for enhancement. Not sure though if it is worth it.
I would love to see this feature.
Feel free to take a deeper look and send a pr if you can.
I would love to see this implemented I am trying to build a grid system with JSS and I feel I really need dynamic values in nested rules.
@kof Can you please suggest any temporary workaround for this issue?
Workaround would be to not to use nested rules with function values right now. Will be fixed soon.
@kof When you reckon that it would be available?
today) part of #444
Fixed, check out jss 7.0
Not sure if I missed anything, but it doesn't seem to work for me.
Have you installed the latest [email protected] as well?
yes. I cleared node_modules and reinstalled as well just to be sure. Still not working.
but did you look into the node_modules/jss-nested/package.json? The thing is I have a test for this case and it works, what do you do different? Can you submit a test?
Alright. Turns out mixing npm and yarn can cause some weird version errors. MB, it is working as expected.