salomonbrys
04/11/2022, 5:55 PMStylesheet.css
function was deleted (https://github.com/JetBrains/compose-jb/commit/cd7691a53fc73ed41abda6de604eb1f9a08af48b), I can find no way in Compose Web to have Css-In-JS, that is to have a component style classes defined within the component (I would usually use the syntax described in this issue: https://github.com/JetBrains/compose-jb/issues/1207).
This type of syntax (aka CSS-In-JS) is supported in Kotlin React with https://github.com/JetBrains/kotlin-wrappers/blob/master/kotlin-styled/README.md and is an important design decision in how we've been building our web apps with it.
Is Jetbrains Compose Web going to support it back ? Is there a workaround we can use in the meantime ?
Note that using style
is insufficient as it does not allow full css selection (hover, children, etc.).
Note that when we were using Kotlin-React, the difference between css
and style
was important: the former described "stable" style (in order to avoid class regeneration) while the second described "moving" style.Oleksandr Karpovich [JB]
04/11/2022, 9:07 PMsalomonbrys
04/11/2022, 9:21 PMDavid Herman
04/12/2022, 5:42 AMsalomonbrys
04/12/2022, 8:17 AMDavid Herman
04/12/2022, 6:16 PMDavid Herman
04/12/2022, 6:17 PMDavid Herman
04/12/2022, 6:18 PMDavid Herman
04/12/2022, 6:19 PM