Documentation still references navbar "active" class on link parent item
Created by: AdrianRichardson
#30831 removed the selector .active > .nav-link
but this is still referenced in the documentation at https://getbootstrap.com/docs/5.0/components/navbar/#nav :
Active states—with .active
—to indicate the current page can be applied directly to .nav-link
s or their immediate parent .nav-item
s.
Please note that you should also add the aria-current
attribute on the .nav-link
itself.
Should become something like:
The class .active
can be applied to .nav-link
to indicate the current page. Please note that you should also add the aria-current
attribute to the active .nav-link
.