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

escaped css variables exported with escaping to javascript #1932

Open
idoros opened this issue Jul 18, 2021 · 0 comments
Open

escaped css variables exported with escaping to javascript #1932

idoros opened this issue Jul 18, 2021 · 0 comments
Labels
bug Unexpected behavior or exception core Processing and transforming logic

Comments

@idoros
Copy link
Collaborator

idoros commented Jul 18, 2021

When defining a css variable with escaping, the escape is exported to javascript and will not affect when using through style.

playground

js bin

.root {
    --b\.a: red;
}

is exported as:

"vars": {
    "b\\.a": "--index-b\\.a" // should be: "b\\.a": "--index-b.a"
},
@idoros idoros added bug Unexpected behavior or exception core Processing and transforming logic labels Jul 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Unexpected behavior or exception core Processing and transforming logic
Projects
None yet
Development

No branches or pull requests

1 participant