HorusGoul / vite-plugin-stylex

Vite Plugin for StyleX
MIT License
110 stars 11 forks source link

`.props(...)` method not merging styles as expected #67

Open tyler-dot-earth opened 3 months ago

tyler-dot-earth commented 3 months ago

Playing around with vite-plugin-stylex and react-strict-dom, hit some unexpected behavior when trying to merge styles with .props method (stylex.props is css.props with react-strict-dom).

StyleX docs on merging styles, variants, etc:

Button code:

The result is that I have no styles on buttons

image

image

Am I doing this wrong? Is this a bug with vite-plugin-stylex?

Thanks