diff options
| author | Patrick H. Lauke <[email protected]> | 2015-06-11 12:47:52 +0100 |
|---|---|---|
| committer | Patrick H. Lauke <[email protected]> | 2015-06-11 12:47:52 +0100 |
| commit | 3d244537fb94ea5d15476f503acf43e462770d30 (patch) | |
| tree | 97d28678806d2d02334ebe54d3bd14c93af9bb96 | |
| parent | e23868c9cf395eabc4a8c6f00a8b58df13aacac7 (diff) | |
| download | bootstrap-3d244537fb94ea5d15476f503acf43e462770d30.tar.xz bootstrap-3d244537fb94ea5d15476f503acf43e462770d30.zip | |
Slightly expand accessible modals callout
to include a note about `role="document"`
| -rw-r--r-- | docs/_includes/js/modal.html | 2 |
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> |
