diff options
| author | Chris Rebert <[email protected]> | 2014-11-11 19:26:10 -0800 |
|---|---|---|
| committer | Chris Rebert <[email protected]> | 2014-11-11 19:26:10 -0800 |
| commit | 3b2d1570fa85c0faac0e7da65b415e59996f4300 (patch) | |
| tree | 348380e38ade1ee7e06af5aa9271518eecc42c75 | |
| parent | 001d5e00c58bbb8e4d34c085c5b27b214a475bd5 (diff) | |
| download | bootstrap-3b2d1570fa85c0faac0e7da65b415e59996f4300.tar.xz bootstrap-3b2d1570fa85c0faac0e7da65b415e59996f4300.zip | |
move single-toggle button plugin callout before example for consistency
| -rw-r--r-- | docs/_includes/js/buttons.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/_includes/js/buttons.html b/docs/_includes/js/buttons.html index cf0bfcb9e..5303a91ac 100644 --- a/docs/_includes/js/buttons.html +++ b/docs/_includes/js/buttons.html @@ -35,6 +35,10 @@ <h2 id="buttons-single-toggle">Single toggle</h2> <p>Add <code>data-toggle="button"</code> to activate toggling on a single button.</p> + <div class="bs-callout bs-callout-warning"> + <h4>Pre-toggled buttons need <code>.active</code> and <code>aria-pressed="true"</code></h4> + <p>For pre-toggled buttons, you must add the <code>.active</code> class and the <code>aria-pressed="true"</code> attribute to the <code>button</code> yourself.</p> + </div> <div class="bs-example"> <button type="button" class="btn btn-primary" data-toggle="button" aria-pressed="false" autocomplete="off"> Single toggle @@ -45,10 +49,6 @@ Single toggle </button> {% endhighlight %} - <div class="bs-callout bs-callout-warning"> - <h4>Pre-toggled buttons need <code>.active</code> and <code>aria-pressed="true"</code></h4> - <p>For pre-toggled buttons, you must add the <code>.active</code> class and the <code>aria-pressed="true"</code> attribute to the <code>button</code> yourself.</p> - </div> <h2 id="buttons-checkbox-radio">Checkbox / Radio</h2> <p>Add <code>data-toggle="buttons"</code> to a <code>.btn-group</code> containing checkbox or radio inputs to enable toggling in their respective styles.</p> |
