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

CSS variables in style gets converted to snake-case. #19

Closed
Zn4rK opened this issue Nov 11, 2023 · 0 comments · Fixed by #30
Closed

CSS variables in style gets converted to snake-case. #19

Zn4rK opened this issue Nov 11, 2023 · 0 comments · Fixed by #30
Labels
bug Something isn't working engine Navita CSS rendering engine

Comments

@Zn4rK
Copy link
Contributor

Zn4rK commented Nov 11, 2023

const borderBottomColor = createVar('borderBottomColor');

const x = style({
  [borderBottomColor]: 'red',
});

The generated css from "x" is --border-bottom-color: red. The variables should probably be left as they are, and createVar etc should generate snake-case vars instead - maybe.

@Zn4rK Zn4rK added bug Something isn't working engine Navita CSS rendering engine labels Nov 11, 2023
@Zn4rK Zn4rK closed this as completed in #30 Nov 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working engine Navita CSS rendering engine
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant