cssinjs / styled-jss

Styled Components on top of JSS.
http://cssinjs.org/styled-jss
MIT License
217 stars 25 forks source link

Component Selectors #44

Closed lttb closed 6 years ago

lttb commented 6 years ago

Support this behavior from https://github.com/cssinjs/styled-jss/issues/40:

const AuthorName = styled('div')({...})
const Avatar = styled('img')({...})

const Message = styled('div')({
  [`&:not(:first-child) ${AuthorName}`]: {
    display: 'none'
  },
  [`&:not(:last-child) ${Avatar}`]: {
    visibility: 'hidden'
  }
})
coveralls commented 6 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling 5a4c3cd68effdda3860addefc4cce50935c1a33e on feature/component-selectors into 826ce3401a72edcff82e2dd289c74ba3246a01e5 on master.

coveralls commented 6 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling a0e2db7d19008b8bc6d896d1f974e7d8a708f9bc on feature/component-selectors into 826ce3401a72edcff82e2dd289c74ba3246a01e5 on master.

coveralls commented 6 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling a0e2db7d19008b8bc6d896d1f974e7d8a708f9bc on feature/component-selectors into 826ce3401a72edcff82e2dd289c74ba3246a01e5 on master.

coveralls commented 6 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling 07969d93f1e859d85f9d55be0d6f11c66b5f2aed on feature/component-selectors into 826ce3401a72edcff82e2dd289c74ba3246a01e5 on master.