I am currently using Bootstrap 5 and experiencing issues with the menu buttons not being completely colored. The background color works fine for the overall background, however, only the middle part of the buttons is getting colored, not the paddings around them. I have attempted to use background-clip but it doesn't seem to be working as expected.
HTML
<div class="theme-bg offcanvas offcanvas-start" tabindex="-1" id="offcanvasLeft" aria-labelledby="offcanvasLeftLabel" style="background-color: #7bed9f;">
<div class="offcanvas-header justify-content-end">
<button type="button" class="btn-close text-reset" data-bs-dismiss="offcanvas" aria-label="Close"></button>
</div>
<div class="offcanvas-header d-flex flex-column justify-content-center">
<img class="profile mb-2" src="{% static 'images/profile-default.png' %}">
<h2 class="text-center ">Welcome Saif</h2>
</div>
<hr class="m-0">
<div class="offcanvas-body p-0 container-fluid list-group list-group-flush border-bottom">
<a href="#" class="list-group-item list-group-item-action py-3 lh-tight">
<div class="d-flex w-100 align-items-center justify-content-between container-fluid theme-bg">
<p class="mb-1 fs-6"><i class="fa fa-home me-1"></i> Home </p>
</div>
</a>
<a href="#" class="list-group-item list-group-item-action py-3 lh-tight">
<div class="d-flex w-100 align-items-center justify-content-between theme-bg">
<p class="mb-1 fs-6"><i class="fa fa-search me-1"></i> Search </p>
</div>
</a>
<a href="#" class="list-group-item list-group-item-action py-3 lh-tight">
<div class="d-flex w-100 align-items-center justify-content-between theme-bg">
<p class="mb-1 fs-6"><i class="fa fa-pencil me-1"></i> Write your blog </p>
</div>
</a>
<a href="#" class="list-group-item list-group-item-action py-3 lh-tight">
<div class="d-flex w-100 align-items-center justify-content-between theme-bg">
<p class="mb-1 fs-6"><i class="fa fa-briefcase me-1"></i> Portfolio </p>
</div>
</a>
<a href="#" class="list-group-item list-group-item-action py-3 lh-tight">
<div class="d-flex w-100 align-items-center justify-content-between theme-bg">
<p class="mb-1 fs-6"><i class="fa fa-gear me-1"></i> Settings </p>
</div>
</a>
<a href="#" class="list-group-item list-group-item-action py-3 lh-tight">
<div class="d-flex w-100 align-items-center justify-content-between theme-bg">
<p class="mb-1 fs-6"><i class="fa fa-sign-out me-1"></i> Sign Out </p>
</div>
</a>
</div>
</div>
CSS
.theme-bg {
background-color: #7bed9f;
padding: 0px;
background-clip: padding-box;
}
The issue appears to be with the menu items not being fully colored as intended.