cssinjs / jss

JSS is an authoring tool for CSS which uses JavaScript as a host language.
https://cssinjs.org
MIT License
7.07k stars 399 forks source link

Child selectors in function rules #721

Closed afrankel-sfdo closed 6 years ago

afrankel-sfdo commented 6 years ago

All variants of child selectors in a function rule don't appear to work. Non-function rules work as expected.

direct: props => ({
    color: theme.error,
    "& span": {
      color: theme.color
    }
  }),

https://codesandbox.io/s/llv18nznnm

screen shot 2018-04-17 at 8 16 05 am

kof commented 6 years ago

I think it is the same as #706

afrankel-sfdo commented 6 years ago

@kof seems reasonable, wasn't sure if media queries and child selectors are handled differently.

kof commented 6 years ago

tbc in https://github.com/cssinjs/jss/issues/682