How can I build target ref in kotlin-styles? ```.d...
# javascript
s
How can I build target ref in kotlin-styles?
Copy code
.dropdown:hover .dropdown-content {
    display: block;
}
a
cc @Leonid Khachaturov
👍 1
l
Use
ancestorHover
I have added some examples to the README, hope it helps: https://github.com/JetBrains/kotlin-wrappers/tree/master/kotlin-styled#css-selectors
👍 2
🙏 1
s
@Leonid Khachaturov Thank you. I went with
Copy code
val dropdownDiv by css {
		hover {
			".${NavBarStyles.name}-${NavBarStyles::dropdownContentDiv.name}" {
				display = Display.block
			}
		}
}
based on your example.