Open andrewfan opened 5 years ago
I am not against it, but not a high prio.
Why would you need compose inside a nested rule?
@HenriBeck it is very usefull when you utility first css frameworks like https://tailwindcss.com/ or have global classes
So you need something like this?
const styles = {
container: {
'& > .item': {
composes: 'container-item',
},
},
};
@HenriBeck yes, exactly
I don't think this is possible without some overhead and bugs. We would need to run query selectors for applying the classnames.
https://cssinjs.org/jss-compose?v=v5.0.0#caveats Are there any plans to marry compose with nested?