aboutsummaryrefslogtreecommitdiff
path: root/docs/javascript
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2014-12-01 01:41:10 -0800
committerMark Otto <[email protected]>2014-12-01 01:41:10 -0800
commit72d17612569e726c2adc12fad2038ff5b14eef96 (patch)
treea54e3249e804198beb4c3dcdc5d29cbf6af3b698 /docs/javascript
parent7a799af939b273e15cbe1e9213819ae363e3260f (diff)
parenta17f23c022aab37872b1801efa3a58cf73123fe0 (diff)
downloadbootstrap-72d17612569e726c2adc12fad2038ff5b14eef96.tar.xz
bootstrap-72d17612569e726c2adc12fad2038ff5b14eef96.zip
Merge branch 'master' into v4
Conflicts: docs/_includes/js/collapse.html
Diffstat (limited to 'docs/javascript')
-rw-r--r--docs/javascript/collapse.md11
1 files changed, 0 insertions, 11 deletions
diff --git a/docs/javascript/collapse.md b/docs/javascript/collapse.md
index 3a25b6b94..40c27009e 100644
--- a/docs/javascript/collapse.md
+++ b/docs/javascript/collapse.md
@@ -87,23 +87,12 @@ Extend the default collapse behavior to create an accordion with the panel compo
</div>
{% endexample %}
-You can also use the plugin without the accordion markup. Make a button toggle the expanding and collapsing of another element.
-
<div class="bs-callout bs-callout-warning">
<h4>Make expand/collapse controls accessible</h4>
<p>Be sure to add <code>aria-expanded</code> to the control element. This attribute explicitly defines the current state of the collapsible element to screen readers and similar assistive technologies. If the collapsible element is closed by default, it should have a value of <code>aria-expanded="false"</code>. If you've set the collapsible element to be open by default using the <code>in</code> class, set <code>aria-expanded="true"</code> on the control instead. The plugin will automatically toggle this attribute based on whether or not the collapsible element has been opened or closed.</p>
<p>Additionally, if your control element is targetting a single collapsible element – i.e. the <code>data-target</code> attribute is pointing to an <code>id</code> selector – you may add an additional <code>aria-controls</code> attribute to the control element, containing the <code>id</code> of the collapsible element. Modern screen readers and similar assistive technologies make use of this attribute to provide users with additional shortcuts to navigate directly to the collapsible element itself.</p>
</div>
-{% highlight html %}
-<button type="button" class="btn btn-danger" data-toggle="collapse" data-target="#demo">
- simple collapsible
-</button>
-
-<div id="demo" class="collapse in">...</div>
-{% endhighlight %}
-
-
## Usage
The collapse plugin utilizes a few classes to handle the heavy lifting: