You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into a problem with the navbar-toggler-icon. For me it was not visible in regular/light mode, but it did become visible in dark mode. In my case I had the .navbar-toggler in a div in my header tag, separate from the .navbar in my header.
When inspecting _navbar.scss I discovered that --#{$prefix}navbar-toggler-icon-bg variable is only set in the .navbar selector, but not in the .navbar-toggler-icon selector.
Then for the dark mode it is set in both the .navbar-dark, .navbar[data-bs-theme="dark"] and also in .navbar-toggler-icon if color-mode is dark.
The latter adds the variable to the .navbar-toggler-icon, making it visible when in dark mode in my case (though the dark and light mode styling does not match).
When I added the following variable to the .navbar-toggler-icon selector it also worked in light mode:
Prerequisites
Describe the issue
I ran into a problem with the navbar-toggler-icon. For me it was not visible in regular/light mode, but it did become visible in dark mode. In my case I had the .navbar-toggler in a div in my header tag, separate from the .navbar in my header.
When inspecting _navbar.scss I discovered that
--#{$prefix}navbar-toggler-icon-bg
variable is only set in the .navbar selector, but not in the .navbar-toggler-icon selector.Then for the dark mode it is set in both the
.navbar-dark, .navbar[data-bs-theme="dark"]
and also in.navbar-toggler-icon
if color-mode is dark.The latter adds the variable to the .navbar-toggler-icon, making it visible when in dark mode in my case (though the dark and light mode styling does not match).
When I added the following variable to the .navbar-toggler-icon selector it also worked in light mode:
Reduced test cases
Here's a working example of the navbar-toggler with and without a navbar/navbar-dark wrapper:
https://codepen.io/Jos-van-Leeuwen/pen/OJqgqBb
What operating system(s) are you seeing the problem on?
Linux
What browser(s) are you seeing the problem on?
Chrome
What version of Bootstrap are you using?
5.3.2
The text was updated successfully, but these errors were encountered: