Is there a solution to the issue described in the following quote?
Bootstrap: link
:hover
functionality is not supported on most touch devices, but iOS tries to replicate it by creating persistent hover styles that remain after tapping an element. These styles are only removed when users tap elsewhere.
Here is the code snippet provided:
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" rel="stylesheet"/>
<div class="container-fluid p-3">
<button class="btn btn-outline-primary">Click here</button>
</div>
On an iPad, when the button is tapped, the :active
state remains sticky and does not change. Is there a CSS solution to this problem?