Skip to content

Fix equivalent calculation when using prefixes in v4 #1166

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 4 commits into from
Feb 5, 2025

Conversation

thecrypticace
Copy link
Contributor

Fixes #1160

We were passing the CSS variable straight through when resolving the theme values but this isn't accurate when a prefix is used. The theme variables do not have prefixes but the emitted CSS variables do.

We have to strip the prefix before doing the lookup.

Copy link
Member

@philipp-spiess philipp-spiess left a comment

Choose a reason for hiding this comment

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

Works like a charm

@thecrypticace thecrypticace merged commit deec3cc into main Feb 5, 2025
@thecrypticace thecrypticace deleted the fix/prefixed-equivalents branch February 5, 2025 14:58
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.

v4: Prefixed theme values are not used to calculate pixel equivalents
2 participants