/* To change the style of a button with class or not that has been set has disabled when hovering. */ button:hover:disabled,button:hover[disabled]{ color: black; } .button_class:hover:disabled,.button_class:hover[disabled]{ color: black; }