Disabled buttons inconsistent across browsers
Created by: JasperHorn
A disabled button looks partially transparent on Firefox, Chrome and IE 11 and has nothing special going on when you move the mouse over it. In IE 10 (and below, I guess) though it looks the same initially, it has an effect on mouseover
: the cursor changes to not-allowed.
The culprit is in buttons.less:
.btn
{
// [..]
&.disabled,
&[disabled],
fieldset[disabled] & {
cursor: not-allowed;
background-color: @btn-default-color;
pointer-events: none; // Future-proof disabling of clicks
.opacity(.65);
.box-shadow(none);
}
}
IE 10 doesn't support pointer-events, so the changes that are prevented on future-proof browsers aren't on IE 10. A simple fix would be to remove the cursor statement, which is negated by the pointer-events anyway:
.btn
{
// [..]
&.disabled,
&[disabled],
fieldset[disabled] & {
background-color: @btn-default-color;
pointer-events: none; // Future-proof disabling of clicks
.opacity(.65);
.box-shadow(none);
}
}