I want my widget buttons to be green by default, and turn red when a cursor hovers over the widget button.
You'd think the following css would do the trick. It did at 4.27:
.esri-widget--button:hover{
background-color: red!important;
}
.esri-widget{
background-color: green!important;
}
Here is a codepen that illustrates the issue. Check out the flashing widget buttons. The map info bar is style because it's an esri-widget:
https://codepen.io/dirkvandervoort/pen/qEWbEBv
Change 4.31to 4.27 in the codepen and you will see what I mean.
Can you help me style my buttons?