One of the CSS classes I have defined is for a button, which looks like this:
.MyButton{
color:black;
background:white;}
.MyButton:hover{
color:white;
background:black;}
This class is used for pagination buttons. When a button reaches its bounds, I add another class to it:
.ButtonDisabled{
opacity:0.3}
The problem arises when a user hovers over a disabled button and it still applies the hover style from MyButton.
I am aware that using jQuery can help control this behavior, but I am curious if there is a way to prevent the hover effect when the button also has the ButtonDisabled class applied.
Any suggestions are appreciated. Thank you.