From: Patrick H. Lauke Date: Thu, 11 Jun 2015 11:47:52 +0000 (+0100) Subject: Slightly expand accessible modals callout X-Git-Tag: v3.3.5~3^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d244537fb94ea5d15476f503acf43e462770d30;p=thirdparty%2Fbootstrap.git Slightly expand accessible modals callout to include a note about `role="document"` --- 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.