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

fix(core): custom-value inside computed st-var #2402

Closed

Conversation

tzachbon
Copy link
Contributor

No description provided.

@tzachbon tzachbon marked this pull request as ready for review March 23, 2022 15:38
@tzachbon tzachbon requested review from idoros and barak007 March 23, 2022 15:38
Copy link
Collaborator

@idoros idoros left a comment

Choose a reason for hiding this comment

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

looks good, but the computed input "type" field string might be problematic since it is only the local custom value identifier in a specific stylesheet. For example stBorder might be border, stBorder or st-border, depending on how it is imported, and when looking at a var that is a composite from imported vars it would be impossible to figure out what custom value it is actually made out of.

Maybe adding the module path and export or the actual evaluated custom-value would help?

packages/core/test/features/st-var.spec.ts Outdated Show resolved Hide resolved
packages/core/test/features/st-var.spec.ts Outdated Show resolved Hide resolved
packages/core/test/features/st-var.spec.ts Show resolved Hide resolved
@tzachbon tzachbon requested a review from idoros March 29, 2022 06:59
@tzachbon
Copy link
Contributor Author

Continued in this PR - #2422

@tzachbon tzachbon closed this Mar 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants