CSS:
button:active {
/* active css */
}
button:disabled {
opacity: 0.5;
}
HTML:
<button disabled="disabled">Ok</button>
After clicking the button, the browser applies the button:active state to give the appearance of a click, despite the button being disabled. It was unexpected as I believed :active only applied to enabled buttons. What am I overlooking?