aboutsummaryrefslogtreecommitdiff
path: root/site
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2023-05-19 09:05:09 -0700
committerGitHub <[email protected]>2023-05-19 09:05:09 -0700
commita6dc107dfd19f1e804b833a46b2d3f4045679452 (patch)
tree653efc6bae7ae2f749f2c7afb0f8af7d9dd691d8 /site
parente87852f2b61b447c474edc58f35c85fcfb3bbe4c (diff)
downloadbootstrap-a6dc107dfd19f1e804b833a46b2d3f4045679452.tar.xz
bootstrap-a6dc107dfd19f1e804b833a46b2d3f4045679452.zip
Add data attr selector for dark mode navbars (#38522)
* Add data attr selector for dark mode navbars * Fix dark example
Diffstat (limited to 'site')
-rw-r--r--site/content/docs/5.3/components/navbar.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/site/content/docs/5.3/components/navbar.md b/site/content/docs/5.3/components/navbar.md
index 277ef0429..9b9f86a4d 100644
--- a/site/content/docs/5.3/components/navbar.md
+++ b/site/content/docs/5.3/components/navbar.md
@@ -328,10 +328,10 @@ Mix and match with other components and utilities as needed.
**New in v5.2.0 —** Navbar theming is now powered by CSS variables and `.navbar-light` has been deprecated. CSS variables are applied to `.navbar`, defaulting to the "light" appearance, and can be overridden with `.navbar-dark`.
{{< /callout >}}
-Navbar themes are easier than ever thanks to Bootstrap's combination of Sass and CSS variables. The default is our "light navbar" for use with light background colors, but you can also apply `data-bs-theme="dark"` to the `.navbar` parent for dark background colors. Then, customize with `.bg-*` utilities.
+Navbar themes are easier than ever thanks to Bootstrap's combination of Sass and CSS variables. The default is our "light navbar" for use with light background colors, but you can also apply `data-bs-theme="dark"` to the `.navbar` parent for dark background colors. Then, customize with `.bg-*` and additional utilities.
<div class="bd-example">
- <nav class="navbar navbar-expand-lg bg-body-secondary" data-bs-theme="dark">
+ <nav class="navbar navbar-expand-lg bg-dark border-bottom border-bottom-dark" data-bs-theme="dark">
<div class="container-fluid">
<a class="navbar-brand" href="#">Navbar</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarColor01" aria-controls="navbarColor01" aria-expanded="false" aria-label="Toggle navigation">
@@ -420,7 +420,7 @@ Navbar themes are easier than ever thanks to Bootstrap's combination of Sass and
</div>
```html
-<nav class="navbar bg-dark" data-bs-theme="dark">
+<nav class="navbar bg-dark border-bottom border-bottom-dark" data-bs-theme="dark">
<!-- Navbar content -->
</nav>