With Boostrap 5, if a .stretched-link is on an element which have a CSS transform translate, the stretched-link doesn't work.
How can I deal with that ?
.btn {
transform: translate(0,0);
}
<link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.0.2/css/bootstrap.min.css" rel="stylesheet"/>
<div class="p-4">
<div class="p-4 bg-warning position-relative">
<a href="https://getbootstrap.com/docs/5.1/helpers/stretched-link/" class="btn btn-primary stretched-link">Button</a>
</div>
</div>