I'm currently utilizing bootstrap 5, and I've encountered an issue with setting the border and outline to none in my CSS file. Specifically, when I apply these properties to the nav-toggler class, it seems to have no effect.
.menu-bar .navbar-toggler{
padding-right: 20px;
outline: none!important;
border: none!important;
}
Below is a snippet of my HTML code:
<div class="header">
<div class="menu-bar">
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container-fluid">
<img src="{% static 'TableauDeBordMjc/images/logo_mjc.png' %}" alt="">
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<i class="fa fa-bars"></i>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav float-end">
<li class="nav-item">
<a class="nav-link" href="#">Accueil</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Nouveau</a>
</li>
<li class="nav-item me-3 me-lg-0 dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown">
Logs
</a>
<ul class="dropdown-menu" >
<li>
<a class="dropdown-item" href="#">Adhérents</a>
</li>
<li>
<a class="dropdown-item" href="#">Salariés</a>
</li>
</ul>
</li>
<li class="nav-item me-3 me-lg-0 dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown">
<i class="fas fa-user"></i>
</a>
<ul class="dropdown-menu pull-right" >
<li>
<a class="dropdown-item" href="#">Déconnexion</a>
</li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
</div>
</div>
Does anyone have any insight into why this might be happening? Additionally, I have included the following script before closing the body tag:
<script src="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="4e2c21213a3d3a3c2f3e0e7b607e607c">[email protected]</a>/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
For reference, here is an image of my website enter image description here
Thank you