diff --git a/docs/javascript.html b/docs/javascript.html index d3eeeb5c22..798ac1110f 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -231,13 +231,17 @@ $('#myModal').on('show.bs.modal', function (e) { {% endhighlight %} -
Be sure to add role="dialog"
to .modal
, aria-labelledby="myModalLabel"
attribute to reference the modal title, and aria-hidden="true"
to tell assistive technologies to skip the modal's DOM elements.
Additionally, you may give a description of your modal dialog with aria-describedby
on .modal
.
Embedding YouTube videos in modals requires additional JavaScript not in Bootstrap to automatically stop playback and more. See this helpful Stack Overflow post for more information.
+Modals have two optional sizes, available via modifier classes to be placed on a .modal-dialog
.