Skip to content

Commit

Permalink
mention .modal-open and .modal-backdrop in docs /cc twbs#10102
Browse files Browse the repository at this point in the history
  • Loading branch information
mdo committed Oct 14, 2013
1 parent 6fa9037 commit edca93b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions javascript.html
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ <h4>Make modals accessible</h4>
</div>

<h2 id="modals-usage">Usage</h2>
<p>The modal plugin toggles your hidden content on demand, via data attributes or JavaScript. It also adds <code>.model-open</code> to the <code>&lt;body&gt;</code> to override default scrolling behavior and generates a <code>.modal-backdrop</code> to provide a click area for dismissing shown modals when clicking outside the modal.</p>

<h3>Via data attributes</h3>
<p>Activate a modal without writing JavaScript. Set <code>data-toggle="modal"</code> on a controller element, like a button, along with a <code>data-target="#foo"</code> or <code>href="#foo"</code> to target a specific modal to toggle.</p>
Expand Down

0 comments on commit edca93b

Please sign in to comment.