When applying filter: brightness(x)
to an element, the text inside becomes blurred in Chrome and Firefox. Is this intended behavior? If not, is there a way to resolve this issue? Check out this fiddle for a demonstration:
https://jsfiddle.net/dye2n0xv/
button {
border: none;
background: linear-gradient(#53a423, #2f6c04);
color: #fff;
font-weight: bold;
padding: 10px;
}
button:hover {
filter: brightness(100%);
}
<button>
Some button label
</button>
Hover over the button and observe the text. While using 100% might seem trivial, my actual requirement is around 125%. I chose 100% to ensure that it's not the browser attempting to show a brighter white than normal, which theoretically shouldn't affect the element at all.