I'm currently working on a website using Bootstrap 5 as my framework. The issue I'm facing is that when scrolling down the page and keeping the table header stuck to the top, the disabled button ends up showing over the header.
I attempted to use both the disabled property and a class name (specifically for Bootstrap).
<link href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="ddbfb2b2a9aea9afbcad9de8f3edf3ef">[email protected]</a>/dist/css/bootstrap.min.css" rel="stylesheet"/>
<table class="table table-striped align-middle mx-auto">
<thead>
<tr style="position: sticky; top: 0; background-color: white;">
<th scope="col" style="position: sticky; top: 0; background-color: white;">Date</th>
<th scope="col" style="position: sticky; top: 0; background-color: white;">Agenda</th>
<th scope="col" style="position: sticky; top: 0; background-color: white;">Meeting Minutes</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">March 19th<br><small class="text-muted"> Budget Meeting Workshop <u>6:00pm</u></small></th>
<td><button type="button" class="btn btn-primary disabled" data-bs-toggle="modal" data-bs-target="#exampleModal" onclick="setSrc('brdmtgs/2019b/marbwmtg/marbwagnd.pdf')">View</button></td>
<td><button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#exampleModal" onclick="setSrc('brdmtgs/2019b/marbwmtg/marbwmin.pdf')">View</button></td>
</tr>
<!-- Additional table rows here -->
</tbody>
</table>
<div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog modal-xl">
<div class="modal-content">
<div class="modal-header" id="afterme">
<h5 class="modal-title" id="exampleModalLabel">Meeting Information</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary" onclick="download_file()">Download</button>
</div>
</div>
</div>
</div>