]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Update collapse.md (#29025)
authorBrian Juul Andersen <brianmanden@gmail.com>
Sat, 13 Jul 2019 07:04:49 +0000 (09:04 +0200)
committerXhmikosR <xhmikosr@gmail.com>
Wed, 17 Jul 2019 11:48:26 +0000 (14:48 +0300)
Corrected minor spelling error.

site/docs/4.3/components/collapse.md

index 893b8b66430314eb72ad56975f31e0cb9039c91b..7cccd7c79f31522724a8ca28a69b67feec34ae7b 100644 (file)
@@ -124,7 +124,7 @@ Using the [card]({{ site.baseurl }}/docs/{{ site.docs_version }}/components/card
 
 ## 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.