I am creating buttons using Bootstrap button generator. Those are fluent design buttons and I noticed that when :disabled
the button still casts shadow on :hover
.
My questions:
I tried:
.btn.disabled:hover { box-shadow: none; }
but it doesn't work.
This should do the work, you just forgot to use a colon :
for :disabled
instead of dot .
which means CSS pseudo class.
.btn:disabled:hover{
box-shadow: none;
}