As I was playing around with the Navbar and the Dropdown tonight, something occurred to me…
When you add a Dropdown to the Navbar, if you go to the Options panel, and select the Link in the Dropdown, you are presented with the standard Nav Item Link Options, which allows you to enter a URL.
Of course, if you do enter a URL, clicking the Dropdown Link doesn’t take you to that URL, it opens the Dropdown menu - which is the expected behavior.
So I started thinking, “why does the Dropdown Link have an Option for a URL since it can’t take you anyplace?”
Then it occurred to me… when you Open the Dropdown using the Open button in the top menu, the Dropdown Link has the .show > .nav-link class added, which changes the color to the active color. The same thing also happens when you click the Dropdown Link on a website…
.navbar-nav .nav-link.active, .navbar-nav .show > .nav-link {
color: var(--bs-navbar-active-color);
}
So my thinking is that the only reason to have an option to add a URL to the Dropdown Link would be so if the Dropdown does take you to a page, the Dropdown Link would change to the active color and stay like that while you’re on that page, the same as the other Nav Links do when you are using BSS’s Smart Active State.
Does this make sense? If so, it would seem like it’s maybe something the devs overlooked. If not, then I can’t see any reason to have a URL option for the Dropdown Link.
Thoughts?
