Tuna
04/30/2023, 1:57 PM.parent:hover .child {}
I see an old thread but I cannot make it works.
https://kotlinlang.slack.com/archives/C01F2HV7868/p1637156187139600Chrimaeon
04/30/2023, 6:45 PMdesc(parent + hover, child) style {
backgroundColor(Color.firebrick)
}
If you do it manually, it works:
"${className(parent)}$hover ${className(child)}" style {
backgroundColor(Color.aliceblue)
}
with parent
and child
defined before the init
block in the StyleSheet
val parent by style {
desc(self + hover, "img") style {
backgroundColor(Color.aliceblue)
}
}
desc(className(parent) + hover, className(child)) style {
backgroundColor(Color.firebrick)
}
Tuna
04/30/2023, 10:11 PM.
when calling $parent