aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorPatrick H. Lauke <[email protected]>2015-06-11 12:47:52 +0100
committerPatrick H. Lauke <[email protected]>2015-06-11 12:47:52 +0100
commit3d244537fb94ea5d15476f503acf43e462770d30 (patch)
tree97d28678806d2d02334ebe54d3bd14c93af9bb96 /docs
parente23868c9cf395eabc4a8c6f00a8b58df13aacac7 (diff)
downloadbootstrap-3d244537fb94ea5d15476f503acf43e462770d30.tar.xz
bootstrap-3d244537fb94ea5d15476f503acf43e462770d30.zip
Slightly expand accessible modals callout
to include a note about `role="document"`
Diffstat (limited to 'docs')
-rw-r--r--docs/_includes/js/modal.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/_includes/js/modal.html b/docs/_includes/js/modal.html
index 0c2f64f86..bdecb1eff 100644
--- a/docs/_includes/js/modal.html
+++ b/docs/_includes/js/modal.html
@@ -141,7 +141,7 @@ $('#myModal').on('shown.bs.modal', function () {
<div class="bs-callout bs-callout-warning" id="callout-modal-accessibility">
<h4>Make modals accessible</h4>
- <p>Be sure to add <code>role="dialog"</code> to <code>.modal</code>, <code>aria-labelledby="myModalLabel"</code> attribute to reference the modal title.</p>
+ <p>Be sure to add <code>role="dialog"</code> and <code>aria-labelledby="..."</code>, referencing the modal title, to <code>.modal</code>, and <code>role="document"</code> to the <code>.modal-dialog</code> itself.</p>
<p>Additionally, you may give a description of your modal dialog with <code>aria-describedby</code> on <code>.modal</code>.</p>
</div>