Open bigslycat opened 7 years ago
It works:
const MyComp = styled('div')({ border: [2, 'solid', 'white'], });
This does not work:
const MyComp = styled('div')({ border: ({ children }) => !children && [2, 'solid', 'white'], });
Works:
const MyComp = styled('div')({ border: ({ children }) => !children && ['2px', 'solid', 'white'].join(' '), });
Thanks for this issue!
It looks like a bug with JSS, see https://github.com/cssinjs/jss/issues/497
It works:
This does not work:
Works: