louiscad
03/08/2022, 9:58 PMYou can't concatenate `String + CSSSelector` which contains `self` or `root`. Use `selector(<your string>)` to convert `String` to `CSSSelector` for proper work. https
Is there no way to have a selector for the current element with a class?
The following code used to run and behave fine:
"$self.kotlin-colors-conic-gradient" {
background("conic-gradient(from 225deg, #7F52FF, #C711E1, #E44857, #C711E1, #7F52FF)")
}
I tried the alternative alternative, but it calls the now throwing toString()
function under the hood, so I'm apparently out of luck. I'd be surprised if non of you need this. Am I taking the wrong approach for the styling matching technique?
combine(self, className("kotlin-colors-conic-gradient")).style {
background("conic-gradient(from 225deg, #7F52FF, #C711E1, #E44857, #C711E1, #7F52FF)")
}
Related issue I submitted: https://github.com/JetBrains/compose-jb/issues/1940