aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Juul Andersen <[email protected]>2019-07-13 09:04:49 +0200
committerXhmikosR <[email protected]>2019-07-13 10:04:49 +0300
commit37ec7f6928ac2b7e1a8846d39948b099b7f3fd25 (patch)
tree6c6e20ee3f5c2284492982cfc873a8bc706a7c87
parent39c4ca3970bb14372b905952699711fdd11650e6 (diff)
downloadbootstrap-37ec7f6928ac2b7e1a8846d39948b099b7f3fd25.tar.xz
bootstrap-37ec7f6928ac2b7e1a8846d39948b099b7f3fd25.zip
Update collapse.md (#29025)
Corrected minor spelling error.
-rw-r--r--site/content/docs/4.3/components/collapse.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/site/content/docs/4.3/components/collapse.md b/site/content/docs/4.3/components/collapse.md
index 0eed61ebc..5b8dc5ea1 100644
--- a/site/content/docs/4.3/components/collapse.md
+++ b/site/content/docs/4.3/components/collapse.md
@@ -123,7 +123,7 @@ Using the [card]({{< docsref "/components/card" >}}) component, you can extend t
## Accessibility
-Be sure to add `aria-expanded` to the control element. This attribute explicitly conveys the current state of the collapsible element tied to the control to screen readers and similar assistive technologies. If the collapsible element is closed by default, the attribute on the control element should have a value of `aria-expanded="false"`. If you've set the collapsible element to be open by default using the `show` class, set `aria-expanded="true"` on the control instead. The plugin will automatically toggle this attribute on the control based on whether or not the collapsible element has been opened or closed (via JavaScript, or because the user triggered another control element also tied to the same collapsbile element). If the control element's HTML element is not a button (e.g., an `<a>` or `<div>`), the attribute `role="button"` should be added to the element.
+Be sure to add `aria-expanded` to the control element. This attribute explicitly conveys the current state of the collapsible element tied to the control to screen readers and similar assistive technologies. If the collapsible element is closed by default, the attribute on the control element should have a value of `aria-expanded="false"`. If you've set the collapsible element to be open by default using the `show` class, set `aria-expanded="true"` on the control instead. The plugin will automatically toggle this attribute on the control based on whether or not the collapsible element has been opened or closed (via JavaScript, or because the user triggered another control element also tied to the same collapsible element). If the control element's HTML element is not a button (e.g., an `<a>` or `<div>`), the attribute `role="button"` should be added to the element.
If your control element is targeting a single collapsible element – i.e. the `data-target` attribute is pointing to an `id` selector – you should add the `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.