I have a BootStrap button, that I'm rendering in React, and it has a property, og a condition within that determines if it's disabled:
<Button bsClass="fill"
disabled={!props.purchaseble}
onClick={console.log("clicked!")}
>Order now</Button>
it works fine without the CSS class, but it animates, whenever the user hovers over it, even when it's disabled:
here is my CSS code for the button
.fill:hover {
color: whitesmoke;
cursor: pointer;
}
.fill:before {
cursor: pointer;
content: "";
position: absolute;
background: #5a320b;
bottom: 0;
left: 0;
right: 0;
top: 100%;
z-index: -1;
-webkit-transition: top 0.09s ease-in;
}
.fill:hover:before {
cursor: pointer;
top: 0;
}
Do these animations still work even if it's disabled and is there a workaround, so the animations don't appear when disabled?