Closed jguddas closed 2 years ago
This solves #333
Did you find the time to have a look at this @gregberge?
Thanks @jguddas
Awesome, we have used my version in production for quite some time now and would love to switch back, are you going to create a minor release for this?
Summary
Example:
<x.div color={{ '&:empty': 'red' }}/>
This makes it, so we fall back to
&:empty
whentheme.states['&:empty']
andtheme.breakpoints['&:empty']
is not defined, just like we usered
whentheme.colors.red
is not defined.Test plan
I added unit tests, if there are more test cases I should take a look at, let me know. I also tried it out using x from the
styled-components
package.