Created by: ysds
(This PR is a modified version of my old PR #25324)
This PR will make the following improvements:
- Allow dropright and dropleft on navbar (#25304 (closed))
- Add basic position to dropup, dropright, dropleft and dropdown-menu-right for disabled popper position in the future enhancement (#24092).
Demo:
- Current (Please see the red links)
- If merged #24092 (Please see the static menus)
Note:
- The direction of carets on navbar is not responsive. (e.g. a caret of dropright is turning to the right even on mobile.)
-
display
is not defined for dropright. In many cases it should be use in/on an inline element (.btn-group
or.d-inline-block
etc). Otherwise the dropright menu will jump to the right end (left: 100%
) of thediv
.