]> git.ipfire.org Git - thirdparty/bootstrap.git/commit
Docs: navbar menu buttons, menu JS toggle, delegated tooltips (#42552)
authorMark Otto <markd.otto@gmail.com>
Sat, 27 Jun 2026 03:16:06 +0000 (20:16 -0700)
committerGitHub <noreply@github.com>
Sat, 27 Jun 2026 03:16:06 +0000 (20:16 -0700)
commitab187653b1efb87d3e269b37a3a8ca3dd9fa76e0
tree966f56d9d84ea88773d5755f4f58d81331f64552
parent180a522930b6e55b45579342e928540d74b3d5b7
Docs: navbar menu buttons, menu JS toggle, delegated tooltips (#42552)

* Docs: use <button> for navbar menu toggles instead of <a href="#">

A menu toggle is a button, not a link. Replace the navbar dropdown
toggles' `<a href="#" role="button">` with semantic `<button>`
(.nav-link already resets button styling). Fixes #40995.

* Docs: show how to open/close/toggle a menu via the JS API

The Via JavaScript section only showed instantiation. Add an example
using getOrCreateInstance().show()/hide()/toggle(). Fixes #37042.

* Docs: document delegated tooltips via the selector option

Add an example initializing one Tooltip on a parent with the selector
option to cover many (and dynamically-added) triggers. Fixes #41020.
site/src/content/docs/components/menu.mdx
site/src/content/docs/components/navbar.mdx
site/src/content/docs/components/tooltip.mdx