You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've realized that contrary to my first impression, reuse is not aware of styled-components@4 component extension feature. That makes predictable overriding of styles impossible, as the order of generated classes depends on component declaration/import order.
This might be out of scope for reuse if CSS properties of combined components are considered disjunct by convention, which might be a good idea.
Hello @diegohaz!
I've realized that contrary to my first impression,
reuse
is not aware ofstyled-components@4
component extension feature. That makes predictable overriding of styles impossible, as the order of generated classes depends on component declaration/import order.This might be out of scope for
reuse
if CSS properties of combined components are considered disjunct by convention, which might be a good idea.I still see a lot of potential in this so I took a quick hack at that here https://github.com/brabeji/styled-compose
What do you think?
The text was updated successfully, but these errors were encountered: