From aacafb2d5c28460477311e92de4de8ac88b2461a Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 9 Mar 2014 16:03:46 -0700 Subject: [PATCH] Fixes #12892: Link to one of the SO articles on Bootstrap modals and YouTube --- docs/javascript.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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.