aboutsummaryrefslogtreecommitdiff
path: root/docs/_includes/js/collapse.html
diff options
context:
space:
mode:
authorChris Rebert <[email protected]>2014-11-13 12:24:03 -0800
committerChris Rebert <[email protected]>2014-11-13 12:24:03 -0800
commit3a96a80a1b304518879e73f945ea254b9aa023a9 (patch)
tree4973ebc5cce32bbb9d86889cf0a3e2068d42d776 /docs/_includes/js/collapse.html
parent101940b452d1def46882f0d01f81f6e596f1e8cf (diff)
parentea407666ce3c5d708b4a830fb2d00bdcb0d2d53e (diff)
downloadbootstrap-3a96a80a1b304518879e73f945ea254b9aa023a9.tar.xz
bootstrap-3a96a80a1b304518879e73f945ea254b9aa023a9.zip
Merge pull request #15093 from twbs/id-callouts
Give all docs callouts IDs [skip sauce]
Diffstat (limited to 'docs/_includes/js/collapse.html')
-rw-r--r--docs/_includes/js/collapse.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/_includes/js/collapse.html b/docs/_includes/js/collapse.html
index 44d05e536..196eadff3 100644
--- a/docs/_includes/js/collapse.html
+++ b/docs/_includes/js/collapse.html
@@ -4,7 +4,7 @@
<h3>About</h3>
<p>Get base styles and flexible support for collapsible components like accordions and navigation.</p>
- <div class="bs-callout bs-callout-danger">
+ <div class="bs-callout bs-callout-danger" id="callout-collapse-dependency">
<h4>Plugin dependency</h4>
<p>Collapse requires the <a href="#transitions">transitions plugin</a> to be included in your version of Bootstrap.</p>
</div>
@@ -136,7 +136,7 @@
<div id="demo" class="collapse in">...</div>
{% endhighlight %}
- <div class="bs-callout bs-callout-warning">
+ <div class="bs-callout bs-callout-warning" id="callout-collapse-accessibility">
<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>