-
-
Notifications
You must be signed in to change notification settings - Fork 155
Open
Labels
Description
Hi, consider the following code:
component Main {
fun render : Html {
<div::s(false)>"Hello World!"</div>
}
style s(isSelected : Bool) {
&:hover {
border: 3px solid blue;
}
if (!isSelected) {
&:not(:hover) {
border: 3px dashed red;
}
}
}
}Sandbox: https://mint-lang.com/sandbox/Nr_GNTQ-MiuISg
Expectation: element has red border when it's not hovered
Observation: element doesn't have any border when it's hovered
The :not(:hover) construct works when I delete if (!isSelected) condition.