-
-
Notifications
You must be signed in to change notification settings - Fork 79k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Navbar color in dark mode uses the $navbar-light-color Sass variable #39070
Comments
I may have stumbled on a related issue.
I would expect the "Login" link (with .nav-link) to be light, but it isn't. @louismaximepiton + @julien-deramond + @smixus : is this a related Bug, or am I missing something? |
I'd say it's not a bug, it looks like it's because you're not using the |
I see, we're back to needing <li class="nav-item"... > to wrap our <a class="nav-link... ? |
Prerequisites
Describe the issue
Using
data-bs-theme="dark"
applied on the entire body enables dark mode, and most Sass variable customization happens accordingly through 'dark' variables, e.g.$body-bg-dark
. However the navbar text color is confusingly controlled by the explicitly-named$navbar-light-color
variable despite using dark mode.Reduced test cases
HTML:
Sass:
Expectation: customizing $navbar-light-color should have no effect due to the use of dark theme.
Actual behavior: $navbar-light-color controls the (dark mode) navbar text color.
What operating system(s) are you seeing the problem on?
macOS
What browser(s) are you seeing the problem on?
No response
What version of Bootstrap are you using?
v5.3.1
The text was updated successfully, but these errors were encountered: