diff options
| author | Florian Lacreuse <[email protected]> | 2021-01-07 08:24:57 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-01-07 09:24:57 +0200 |
| commit | e635a495362f440343aa9dbe346e1033337d035a (patch) | |
| tree | e95fc8604c7e8e385cc50182189e30bca24777f9 | |
| parent | acec356c811e9bcfd7999795336000ce6d609d33 (diff) | |
| download | bootstrap-e635a495362f440343aa9dbe346e1033337d035a.tar.xz bootstrap-e635a495362f440343aa9dbe346e1033337d035a.zip | |
Fix navbar docs - active nav-link (#32589)
* Fix navbar docs - active nav-link
* Update navbar.md
Co-authored-by: XhmikosR <[email protected]>
| -rw-r--r-- | site/content/docs/5.0/components/navbar.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/site/content/docs/5.0/components/navbar.md b/site/content/docs/5.0/components/navbar.md index 87d2a653a..e59c7c25b 100644 --- a/site/content/docs/5.0/components/navbar.md +++ b/site/content/docs/5.0/components/navbar.md @@ -124,9 +124,9 @@ Adding images to the `.navbar-brand` will likely always require custom styles or Navbar navigation links build on our `.nav` options with their own modifier class and require the use of [toggler classes](#toggler) for proper responsive styling. **Navigation in navbars will also grow to occupy as much horizontal space as possible** to keep your navbar contents securely aligned. -Active states—with `.active`—to indicate the current page can be applied directly to `.nav-link`s or their immediate parent `.nav-item`s. +Add the `.active` class on `.nav-link` to indicate the current page. -Please note that you should also add the `aria-current` attribute on the `.nav-link` itself. +Please note that you should also add the `aria-current` attribute on the active `.nav-link`. {{< example >}} <nav class="navbar navbar-expand-lg navbar-light bg-light"> |
