From c84cf4f7f5187e607e1c5a921d7a7b8166e66def Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 16 Apr 2015 14:07:20 -0700 Subject: rename classes from .bs-docs and .bs to .bd --- docs/components/collapse.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/components/collapse.md') diff --git a/docs/components/collapse.md b/docs/components/collapse.md index 40c27009e..1f5f02f70 100644 --- a/docs/components/collapse.md +++ b/docs/components/collapse.md @@ -5,7 +5,7 @@ title: Collapse Flexible plugin that utilizes a handful of classes for easy toggle behavior. -
+

Plugin dependency

Collapse requires the transitions plugin to be included in your version of Bootstrap.

@@ -87,7 +87,7 @@ Extend the default collapse behavior to create an accordion with the panel compo
{% endexample %} -
+

Make expand/collapse controls accessible

Be sure to add aria-expanded 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 aria-expanded="false". If you've set the collapsible element to be open by default using the in class, set aria-expanded="true" on the control instead. The plugin will automatically toggle this attribute based on whether or not the collapsible element has been opened or closed.

Additionally, if your control element is targetting a single collapsible element – i.e. the data-target attribute is pointing to an id selector – you may add an additional aria-controls attribute to the control element, containing the id 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.

-- cgit v1.2.3 From 466d36e54175ee00927d6518d9481acd2d210590 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 16 Apr 2015 16:56:40 -0700 Subject: Redo all our callouts with the custom callout plugin - Replaces manual use of .bd-callout with {% callout [type] %} - Rearranged some callouts for proximity to others - Turned long lists of callouts--like those on tooltips, plugings, etc--into a list because holy shit that's overwhelming --- docs/components/collapse.md | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'docs/components/collapse.md') diff --git a/docs/components/collapse.md b/docs/components/collapse.md index 1f5f02f70..e61fb82b5 100644 --- a/docs/components/collapse.md +++ b/docs/components/collapse.md @@ -5,10 +5,11 @@ title: Collapse Flexible plugin that utilizes a handful of classes for easy toggle behavior. -
-

Plugin dependency

-

Collapse requires the transitions plugin to be included in your version of Bootstrap.

-
+{% callout danger %} +#### Plugin dependency + +Collapse requires the [transitions plugin](#transitions) to be included in your version of Bootstrap. +{% endcallout %} ## Example @@ -87,11 +88,11 @@ Extend the default collapse behavior to create an accordion with the panel compo
{% endexample %} -
-

Make expand/collapse controls accessible

-

Be sure to add aria-expanded 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 aria-expanded="false". If you've set the collapsible element to be open by default using the in class, set aria-expanded="true" on the control instead. The plugin will automatically toggle this attribute based on whether or not the collapsible element has been opened or closed.

-

Additionally, if your control element is targetting a single collapsible element – i.e. the data-target attribute is pointing to an id selector – you may add an additional aria-controls attribute to the control element, containing the id 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.

-
+## Accessibility + +Be sure to add `aria-expanded` 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 `aria-expanded="false"`. If you've set the collapsible element to be open by default using the `in` class, set `aria-expanded="true"` on the control instead. The plugin will automatically toggle this attribute based on whether or not the collapsible element has been opened or closed. + +Additionally, if your control element is targetting a single collapsible element – i.e. the `data-target` attribute is pointing to an `id` selector – you may add an additional `aria-controls` attribute to the control element, containing the `id` 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. ## Usage -- cgit v1.2.3