Authors will have to include these more specific attributes themselves. For this reason, Bootstrap does not expect (nor automatically add) any of the role and aria- attributes required for true ARIA menus. For instance, it is possible to create dropdowns that contain additional inputs and form controls, such as search fields or login forms. ARIA menus can only contain menu items, checkbox menu items, radio button menu items, radio button groups, and sub-menus.īootstrap’s dropdowns, on the other hand, are designed to be generic and applicable to a variety of situations and markup structures. The WAI ARIA standard defines an actual role="menu" widget, but this is specific to application-like menus which trigger actions or functions. Popper isn’t used to position dropdowns in navbars though as dynamic positioning isn’t required. Be sure to include before Bootstrap’s JavaScript or use / which contains Popper. They’re toggled by clicking, not by hovering this is an intentional design decision.ĭropdowns are built on a third party library, Popper, which provides dynamic positioning and viewport detection. They’re made interactive with the included Bootstrap dropdown JavaScript plugin. Dropdowns are toggleable, contextual overlays for displaying lists of links and more.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |