From 3d244537fb94ea5d15476f503acf43e462770d30 Mon Sep 17 00:00:00 2001 From: "Patrick H. Lauke" Date: Thu, 11 Jun 2015 12:47:52 +0100 Subject: [PATCH] Slightly expand accessible modals callout to include a note about `role="document"` --- docs/_includes/js/modal.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_includes/js/modal.html b/docs/_includes/js/modal.html index 0c2f64f862..bdecb1eff6 100644 --- a/docs/_includes/js/modal.html +++ b/docs/_includes/js/modal.html @@ -141,7 +141,7 @@ $('#myModal').on('shown.bs.modal', function () {

Make modals accessible

-

Be sure to add role="dialog" to .modal, aria-labelledby="myModalLabel" attribute to reference the modal title.

+

Be sure to add role="dialog" and aria-labelledby="...", referencing the modal title, to .modal, and role="document" to the .modal-dialog itself.

Additionally, you may give a description of your modal dialog with aria-describedby on .modal.