Replies: 2 comments 1 reply
-
|
The markup is missing the navbar color mode for a dark/colored background. In Bootstrap 5.3, add <nav class="navbar navbar-expand-md bg-success sticky-top mb-3 mx-0 py-0" data-bs-theme="dark">
...
<button
class="navbar-toggler"
type="button"
data-bs-toggle="collapse"
data-bs-target="#toggler"
aria-controls="toggler"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon"></span>
</button>
</nav>
|
Beta Was this translation helpful? Give feedback.
-
|
Hey Igor, This no longer looks like a navbar color issueThe screenshot shows that the toggler button itself exists and has the correct dimensions. Only the three lines are missing. Bootstrap does not render those lines as HTML. Open DevTools, select Check the result
A restrictive policy such as The fact that CSP-friendly solutionInstead of weakening an intentional CSP, replace Bootstrap's background image with an inline SVG: This uses One additional detail: the discussion title says Bootstrap Also keep:
The Bootstrap JavaScript bundle controls whether the menu opens. It does not draw the icon itself. References: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I added Bootstrap links to the layout Blade template file and I made the navbar like in this page https://getbootstrap.com/docs/5.3/components/navbar/#toggler.
Hamburger icon does not show in the navbar.
Beta Was this translation helpful? Give feedback.
All reactions