Dropdowns
Dropdown in Lexicon Sites with Button
.link-outline-*can be used on.dropdown-togglewith anaorbuttontag. Use anawithhrefif you want no focus outline on click and the browser default focus outline on tab. Abuttonwill have a custom focus outline on click and tab.Using Bootstrap 4's
.btnclasses will always have a custom focus outline on click and tab.
Dropdown in Lexicon Sites with Anchor
dropdown-menu-indicator-start
dropdown-menu-indicator-end
dropdown-menu-indicator-start
dropdown-menu-indicator-end
Scrolling Content
Nest
<div class="inline-scroller"></div>inside a.dropdown-menulist item to create a scrollable dropdown. The maximum height is 200px on screen sizes 768px and above, on screen sizes 767px and below the overflow is handled by.dropdown-menu.
Align a dropdown menu on the left or right side with classes
dropdown-menu-right-side,dropdown-menu-left-side,dropdown-menu-right-side-bottom, ordropdown-menu-left-side-bottom.
We've also added the option to center the dropdown to its trigger in the 4 different dropdown-menu positions with classes
dropdown-menu-center,dropdown-menu-top-center,dropdown-menu-left-side-middle, ordropdown-menu-right-side-middle.You can center the dropdown menu in browsers that don't support css transforms by setting a negative
margin-leftequal to the width of the dropdown-menu divided by 2. For left-side and right-side dropdown-menus vertically align them by setting a negativemargin-topequal to the height of the dropdown-menu divided by 2.