From 42a0f8f0071cf323894af0265a6488c1e56dd63c Mon Sep 17 00:00:00 2001 From: "Patrick H. Lauke" Date: Thu, 10 Sep 2020 08:04:13 +0100 Subject: [PATCH] Docs: (subjectively) nicer looking accordion example (#31137) * Docs: (subjectively) nicer looking accordion example the use of `.btn-link` currently just looks a bit odd, subjectively (as in v5 we now force the underline to always be there, while in v4 at least it was only on hover/focus). `.btn-light` seems more fitting * Add extra classes for nicer overall look as suggested by @ysds * Tweak accessibility note for accordions and optional keyboard interactions --- site/content/docs/5.0/components/collapse.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/site/content/docs/5.0/components/collapse.md b/site/content/docs/5.0/components/collapse.md index a182ab2301..349d26da55 100644 --- a/site/content/docs/5.0/components/collapse.md +++ b/site/content/docs/5.0/components/collapse.md @@ -76,9 +76,9 @@ Using the [card]({{< docsref "/components/card" >}}) component, you can extend t {{< example >}}
-
+

-

@@ -91,9 +91,9 @@ Using the [card]({{< docsref "/components/card" >}}) component, you can extend t
-
+

-

@@ -105,9 +105,9 @@ Using the [card]({{< docsref "/components/card" >}}) component, you can extend t
-
+

-

@@ -127,7 +127,7 @@ Be sure to add `aria-expanded` to the control element. This attribute explicitly 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. -Note that Bootstrap's current implementation does not cover the various keyboard interactions described in the [WAI-ARIA Authoring Practices 1.1 accordion pattern](https://www.w3.org/TR/wai-aria-practices-1.1/#accordion) - you will need to include these yourself with custom JavaScript. +Note that Bootstrap's current implementation does not cover the various *optional* keyboard interactions described in the [WAI-ARIA Authoring Practices 1.1 accordion pattern](https://www.w3.org/TR/wai-aria-practices-1.1/#accordion) - you will need to include these yourself with custom JavaScript. ## Usage