jxnblk / axs

Stupid simple style components for React
https://jxnblk.com/axs/
MIT License
209 stars 9 forks source link

multiple responsive props return incomplete media query #8

Open queckezz opened 7 years ago

queckezz commented 7 years ago

Given the following props on any withAxs-wrapped component:

{
  width: [1, 2/3]
  pr: [0, 1]
}

This only generates a cxs media query for the last responsive props given:

@media screen and (min-width:40em) {
  .cxs-12406165 {
    padding-right:8px
   /** -> missing `width` here */
  }
}

I just throw this out here in case you run into it too. I'll eventually send a PR.

pstoica commented 7 years ago
screen shot 2017-01-09 at 6 50 41 pm

i think this library generates classes for individual rules, so it's split into two.