From: Patrick H. Lauke Date: Tue, 18 Apr 2017 08:34:55 +0000 (+0100) Subject: Add dropdown menu accessibility callout and fix example X-Git-Tag: v4.0.0-beta~166^2~88 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a3e002e8f92b09d027083d3fc74750d6e56ef6e;p=thirdparty%2Fbootstrap.git Add dropdown menu accessibility callout and fix example As the question often comes up about why Bootstrap does not do "true" ARIA menus (with their `role="menu"` etc), add an admittedly lengthy note (tl;dr because BS is generic, and ARIA menus are specific and quite limiting). Additionally, fixes up the `` example for dropdown trigger, with the missing `role="button"` and neutering the `href` (which would be useless anyway since BS overrides the link-like nature of the `` so it could never be triggered/followed anyway) --- diff --git a/docs/components/dropdowns.md b/docs/components/dropdowns.md index 0be8d4d74c..4da232b7d1 100644 --- a/docs/components/dropdowns.md +++ b/docs/components/dropdowns.md @@ -16,6 +16,16 @@ Dropdowns are toggleable, contextual overlays for displaying lists of links and Wrap the dropdown's toggle (your button or link) and the dropdown menu within `.dropdown`, or another element that declares `position: relative;`. Dropdowns can be triggered from `` or `