From edca93b8c71829cbe09055e048a31b54ec19eb5b Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 13 Oct 2013 18:43:19 -0700 Subject: [PATCH] mention .modal-open and .modal-backdrop in docs /cc #10102 --- javascript.html | 1 + 1 file changed, 1 insertion(+) diff --git a/javascript.html b/javascript.html index d7cc4c7a36e2..e0723989e6c6 100644 --- a/javascript.html +++ b/javascript.html @@ -232,6 +232,7 @@

Make modals accessible

Usage

+

The modal plugin toggles your hidden content on demand, via data attributes or JavaScript. It also adds .model-open to the <body> to override default scrolling behavior and generates a .modal-backdrop to provide a click area for dismissing shown modals when clicking outside the modal.

Via data attributes

Activate a modal without writing JavaScript. Set data-toggle="modal" on a controller element, like a button, along with a data-target="#foo" or href="#foo" to target a specific modal to toggle.