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

CamelCased variable names are unexpected turned into kebab-case when setting them #821

Open
nmn opened this issue Dec 21, 2024 · 1 comment
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@nmn
Copy link
Contributor

nmn commented Dec 21, 2024

Previously, all variable names are always hashes that only included small-case letters.

Now, with the debug option set to true, variables are prefixed with their in-source key name.

This behavior has exposed a bug in how StyleX set the values of CSS variables. We always convert camelCase to kebab-case for CSS properties. We need to exclude CSS variables.

@nmn nmn added bug Something isn't working good first issue Good for newcomers labels Dec 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants
@nmn and others