Commit 3d244537 authored by Patrick H. Lauke's avatar Patrick H. Lauke
Browse files

Slightly expand accessible modals callout

to include a note about `role="document"`
parent e23868c9
5 merge requests!28721Hot test,!16653dokidoki,!22103test,!25326Adjust examples,!16623Add role="document" to modal dialog content
Showing with 1 addition and 1 deletion
+1 -1
......@@ -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>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment