Skip to content

fix: preserve order of variant expansion props #1326

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Dec 2, 2020

Conversation

atanasster
Copy link
Collaborator

issue: #1319

#1273 changed the order of variant props expansion - where local sx props were overwriting any props inherited from variants. This led to incompatibility with older code relying on props order.

Now the variant props are expanded during a loop to place them at the same order where the variant itself was declared.

@atanasster atanasster requested a review from hasparus as a code owner December 2, 2020 02:56
Copy link
Member

@hasparus hasparus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hasparus hasparus merged commit a9d92ce into system-ui:master Dec 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants