I encountered an issue with a button-group containing 2 buttons, each with a tooltip and a modal. Bootstrap recommends wrapping the buttons with spans to manage two "data-bs-toggle" attributes, which is what I initially did.
While the functionality works fine and the tooltip displays along with the modal popping up upon button click, I noticed that the tooltip does not show when the cursor is in the padding of the button. Instead, it only works when the cursor is over the span (in this case, the icon).
https://i.sstatic.net/QUxWQ.png
https://i.sstatic.net/hfd1L.png
[
I attempted to give the span the "d-block w-100" class, but it seems that it is not effective.
Below is my code using Bootstrap 5:
<script src="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="187a77776c6b6c9a3f2a7d979d6d9979e16e9e97927d6c717d8b7c232e171b3729292b7e797828e020824f9e4e4e2">[email protected]</a>/dist/js/bootstrap.bundle.min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="79131e1e05020503100149263c3d6d2224383a3a3a2c2c34342d6922272a36261b3c36332c3d303c4a3c263b27262062">[email protected]</a>/dist/css/bootstrap.min.css" rel="stylesheet"/>
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css" rel="stylesheet"/>
<div class="btn-group btn-group-lg" role="group">
<button class='btn btn-lg btn-outline-primary' data-bs-toggle='modal' data-bs-target='#modalExport'>
<span type="button" class="mgc-export-popup" tabindex="0"
data-bs-toggle="tooltip" data-bs-placement="top" title="Export">
<i class="fa-solid fa-file-export fa-fw fa-lg"></i></span></button>
<button class='btn btn-lg btn-outline-primary' data-bs-toggle='modal' data-bs-target='#modalImport'>
<span type="button" class="mgc-import-popup" tabindex="0"
data-bs-toggle="tooltip" data-bs-placement="top" title="Import">
<i class="fa-solid fa-file-import fa-fw fa-lg"></i></span></button>
</div>