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

Use proper key for paint style lookup #582

Merged
merged 2 commits into from
Jun 16, 2022
Merged

Conversation

gossi
Copy link
Member

@gossi gossi commented Jun 16, 2022

When a style is used as fill and/or as stroke in multiple nodes in figma, then theemo cli always fetched the color value from fill instead of stroke (when used as stroke).

This PR fixes it by taking the color where the style is used.

@gossi gossi added the bug Something isn't working label Jun 16, 2022
@cloudflare-workers-and-pages
Copy link

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: d594766
Status: ✅  Deploy successful!
Preview URL: https://3ebfabc3.theemo.pages.dev
Branch Preview URL: https://fix-parse-figma-rest-styles.theemo.pages.dev

View logs

@gossi gossi merged commit 960d03b into main Jun 16, 2022
@gossi gossi deleted the fix-parse-figma-rest-styles branch June 16, 2022 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant