Hello, I upgraded from Compose 1.0.0-alpha1-rc4 to...
# compose-web
l
Hello, I upgraded from Compose 1.0.0-alpha1-rc4 to 1.0.1 1.1.0, and I get the following error at runtime:
Copy code
You 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:
Copy code
"$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?
Copy code
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