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

layer.textStyles have no names #43

Closed
mrrhysbutler opened this issue Jan 25, 2019 · 2 comments
Closed

layer.textStyles have no names #43

mrrhysbutler opened this issue Jan 25, 2019 · 2 comments

Comments

@mrrhysbutler
Copy link

mrrhysbutler commented Jan 25, 2019

When accessing textStyles via the selectedLayer object, they do not appear to have a corresponding name (but all other info appears correctly). However, when querying styleguideTextStyles, all names are correctly returned.

In the Zeplin Mac app, the style name is correctly displayed in the info panel.

Currently running macOS app Version 2.2.5 (609). Any ideas? Thanks.

@dirtybit
Copy link
Contributor

Currently, text style objects on the selected do not have their name field populated from the project's styleguide. You need to look it up in the project to see if there's a matching text style. You can use Project.findTextStyleEqual method for this.

The behavior is also same for colors in layers:
#7

@mrrhysbutler
Copy link
Author

Thanks for the clarification

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

No branches or pull requests

2 participants