nandorojo / dripsy

🍷 Responsive, unstyled UI primitives for React Native + Web.
https://dripsy.xyz
MIT License
2.01k stars 80 forks source link

Fix default primary variant overriding variants array #93

Closed cmaycumber closed 3 years ago

cmaycumber commented 3 years ago

This solves the issue: #78

Changed the styling mechanism to always rely on the multiple variant styles by appending the variant to the multiple variants array if it exists.

Variant precedence is now as follows:

defaultsVariants -> defaultVariant -> variants -> variant

nandorojo commented 3 years ago

looks good, thanks! got tripped up by my own confusing code lol