Recently, I noticed an issue with an anchor element that is used to load a PDF. Once the PDF loads, the :hover styling seems to get stuck until I click elsewhere on the screen, which then resets it back to normal. Surprisingly, there is no JavaScript involved and the only relevant CSS code is as follows:
.my-btn {
color: #3568c4;
background-color: transparent;
border-color: #3568c4;
}
.my-btn:hover {
background-color: #3568c4;
color:white;
}