1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-29 08:10:47 +02:00

Add data attr selector for dark mode navbars (#38522)

* Add data attr selector for dark mode navbars

* Fix dark example
This commit is contained in:
Mark Otto
2023-05-19 09:05:09 -07:00
committed by GitHub
parent e87852f2b6
commit a6dc107dfd
2 changed files with 5 additions and 4 deletions

View File

@@ -266,7 +266,8 @@
@include deprecate("`.navbar-light`", "v5.2.0", "v6.0.0", true);
}
.navbar-dark {
.navbar-dark,
.navbar[data-bs-theme="dark"] {
// scss-docs-start navbar-dark-css-vars
--#{$prefix}navbar-color: #{$navbar-dark-color};
--#{$prefix}navbar-hover-color: #{$navbar-dark-hover-color};