mirror of
https://github.com/twbs/bootstrap.git
synced 2025-03-21 13:29:00 +01:00
Fix navbar docs - active nav-link (#32589)
* Fix navbar docs - active nav-link * Update navbar.md Co-authored-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
parent
acec356c81
commit
e635a49536
@ -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">
|
||||
|
Loading…
x
Reference in New Issue
Block a user