From e23868c9cf395eabc4a8c6f00a8b58df13aacac7 Mon Sep 17 00:00:00 2001 From: "Patrick H. Lauke" Date: Thu, 11 Jun 2015 12:40:24 +0100 Subject: [PATCH 1/2] 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 --- docs/_includes/js/modal.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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.