From: Mark Otto Date: Sun, 9 Mar 2014 23:03:46 +0000 (-0700) Subject: Fixes #12892: Link to one of the SO articles on Bootstrap modals and YouTube X-Git-Tag: v3.2.0~396 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aacafb2d5c28460477311e92de4de8ac88b2461a;p=thirdparty%2Fbootstrap.git Fixes #12892: Link to one of the SO articles on Bootstrap modals and YouTube --- 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 %} -

Make modals accessible

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

+

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.

+
+

Optional sizes

Modals have two optional sizes, available via modifier classes to be placed on a .modal-dialog.