You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior:
I tried to put a css variable into the jss object on the jss playground:
"--helloWorld" : "red",
I expected this to remain untouched. Instead it was converted to:
--hello-world: red;
Describe the bug:
css variables should not be camel-cased
Codesandbox link:
Enter this into the jss playground:
Oh I get it, you wrote camel cased custom prop, but because of the conversion you have to use a hyphenised version of it in (var()), so it becomes inconsistent from the consuming perspective, unless you write the first one also hyphenised.
Expected behavior:
I tried to put a css variable into the jss object on the jss playground:
"--helloWorld" : "red",
I expected this to remain untouched. Instead it was converted to:
--hello-world: red;
Describe the bug:
css variables should not be camel-cased
Codesandbox link:
Enter this into the jss playground:
export default {
button: {
"--helloWorld" : "red",
border: '1px solid var( --helloWorld )',
}
};
Versions (please complete the following information):
-OS: macOS
Feel free to add any additional versions which you may think are relevant to the bug.
The text was updated successfully, but these errors were encountered: