I haven't found an effective way to apply a hover effect on an image, but only if it is not inside a disabled element. I would think this css selector would work, but it doesn't appear to. In this example, I'd want the hover effect on examples #2 and #3, but not #1, because it is in a disabled button.
*:not(*:disabled) img.action:hover {
border-radius: 35%;
border: 1px;
background: red;
}
<button name="example#1" class="action" type="button"
value="Edit" disabled>
<img class="action" src="https://i.stack.imgur.com/3ATqJ.png">
</button>
<span name="example#2">
<a href="index.php">
<img class="action" src="https://i.stack.imgur.com/3ATqJ.png" >
</a>
</span>
<div name="Example#3">
<img class="action" src="https://i.stack.imgur.com/3ATqJ.png" >
</div>