I have a css file like this in a gtk4 application. I am expecting the GtkButton to change its color when the mouse hovered over it.
headerbar button {
border-radius: 20px;
border-style: none;
border: solid 1px red;
background-color: transparent;
color: skyblue;
}
headerbar button :hover {
border: solid 1px lightgreen;
color: magenta;
}
However, the result I get is:
The button will allways have a red border. And the properties I set in button :hover is applied to button's label instead

The blue square is my button :hover css properties. Did I do something wrong?