From: Patrick H. Lauke Date: Thu, 11 Jun 2015 11:40:24 +0000 (+0100) Subject: Add role="document" to modal itself X-Git-Tag: v3.3.5~3^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e23868c9cf395eabc4a8c6f00a8b58df13aacac7;p=thirdparty%2Fbootstrap.git Add role="document" to modal itself Initial fix to generalise use of modals. Generally, true role="dialog" containers would require only forms/controls as content, with all other text correctly and explicitly associated via aria-labelledby/aria-describedby and similar...but as authors use modals also as generic overlays, this extra role is required to get AT (particularly NVDA) out of "forms" mode and reenable reading keys --- diff --git a/docs/_includes/js/modal.html b/docs/_includes/js/modal.html index 840091f854..0c2f64f862 100644 --- a/docs/_includes/js/modal.html +++ b/docs/_includes/js/modal.html @@ -69,7 +69,7 @@ $('#myModal').on('shown.bs.modal', function () {

Toggle a modal via JavaScript by clicking the button below. It will slide down and fade in from the top of the page.