-
Notifications
You must be signed in to change notification settings - Fork 0
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
Javascript evaluation behavior #1
Comments
I have the same issue. |
@sukazavr apparently it's just the way (react-)jss works — you can have functions only as a replacement of property values, but not inside of those values |
@mistadikay but straight injections doesn't work too: preJSS`
html {
font-size: ${baseFontSizePx}px;
}
` Trinspiled to: html {
font-size: $^var__19e1c95c-a11c-54e0-d0eb-f10f33336d5dpx;
} Is it a function too? |
yeah, this wouldn't work: preJSS`
html {
font-size: ${baseFontSizePx}px;
}
` this would work: preJSS`
html {
font-size: ${baseFontSizePx};
}
` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey! Love this plugin, it helps me to migrate to JSS really quickly.
However, it looks like javascript evaluation is somewhat limited. For example, this will be evaluated:
But this will not:
Result will look like this:
Is it expected behavior? If it is, maybe it makes sense to document it?
The text was updated successfully, but these errors were encountered: