I recently created this code snippet:
<div class="dropdown">
<button class="btn btn-secondary dropdown-toggle buttonForProfile" type="button" id="dropdownMenuButton" data-bs-toggle='dropdown' aria-haspopup="true" aria-expanded="false">
<?php echo $_SESSION['username']; ?>
</button>
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
<a class="dropdown-item" href="#">Profile</a>
<a class="dropdown-item" href="#">Subscriptions</a>
<a class="dropdown-item" href="./php/signout.php">Sign out</a>
</div>
</div>
After some styling with CSS, it now appears as shown in this image:
https://i.sstatic.net/3dzkl.png
However, upon clicking on the dropdown, the background reverts to its default state:
https://i.sstatic.net/vLN2s.png
Is there a way to customize the gray background that appears when toggling the dropdown?