I have updated the button styles for hover effects.
However, I am facing an issue where the color changes when the button is disabled and hovered over.
<button pButton type="submit" label="Launch @RT" class="ui-button-success color" [disabled]="groupList.length+ejList.length>0 ? false: true"></button>
This is my current CSS:
.ui-button-success.ui-state-disabled, .ui-widget:hover:disabled, .ui-button-success.color{
background-color: white !important;
color: #00965E;
}
.ui-button.ui-button-success:hover
{
background-color: #00965E !important;
color: white;
}
How can I maintain the button style unchanged when it's disabled and hovered over, but change the color when it's enabled?