Skip to content
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

Fixes Create styles removing previously attached styles #1193

Merged
merged 1 commit into from
Aug 19, 2022

Conversation

six7
Copy link
Collaborator

@six7 six7 commented Aug 19, 2022

This PR fixes a bug with Create styles which would detach any existing styles to our $themes object.

In assignStyleIdsToTheme I spread the existing $figmaStyleReferences before we spread the new object.

Before:

Loom_H5JWqFG0YC.mp4

After:

Loom_cAKcra1YcV.mp4

@vercel
Copy link

vercel bot commented Aug 19, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
figma-tokens ✅ Ready (Inspect) Visit Preview Aug 19, 2022 at 7:36AM (UTC)
ft-storybook ✅ Ready (Inspect) Visit Preview Aug 19, 2022 at 7:36AM (UTC)

@github-actions
Copy link
Contributor

Commit SHA:75bc73c2feab51a38afe3dc88311f385b720e68a
No changes to code coverage between the base branch and the head branch

@six7 six7 merged commit 63bf86a into next Aug 19, 2022
@six7 six7 mentioned this pull request Aug 19, 2022
@six7 six7 deleted the fix/styleid-create branch August 22, 2022 06:57
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.

Create styles de-attaches tokens for not-checked types
2 participants