]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fix navbar docs - active nav-link (#32589)
authorFlorian Lacreuse <florianlacreuse@users.noreply.github.com>
Thu, 7 Jan 2021 07:24:57 +0000 (08:24 +0100)
committerGitHub <noreply@github.com>
Thu, 7 Jan 2021 07:24:57 +0000 (09:24 +0200)
* Fix navbar docs - active nav-link

* Update navbar.md

Co-authored-by: XhmikosR <xhmikosr@gmail.com>
site/content/docs/5.0/components/navbar.md

index 87d2a653a9e13db46c9b59123d40d737789b2250..e59c7c25b97fb987ed6cce37bff667f6b1e472b6 100644 (file)
@@ -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">