From 507e6b32578e9b8cf22c0a80ae079ea490e9551b Mon Sep 17 00:00:00 2001 From: "Patrick H. Lauke" Date: Sun, 21 Jun 2020 14:54:29 +0100 Subject: [PATCH 1/3] 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 --- site/content/docs/5.0/components/collapse.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/site/content/docs/5.0/components/collapse.md b/site/content/docs/5.0/components/collapse.md index beb9486c9b9c..6783b5a877a1 100644 --- a/site/content/docs/5.0/components/collapse.md +++ b/site/content/docs/5.0/components/collapse.md @@ -78,7 +78,7 @@ Using the [card]({{< docsref "/components/card" >}}) component, you can extend t

-

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

-

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

-

From 25a913576c3677759465c474564f8a4d816a059d Mon Sep 17 00:00:00 2001 From: "Patrick H. Lauke" Date: Sat, 1 Aug 2020 01:40:10 +0100 Subject: [PATCH 2/3] Add extra classes for nicer overall look as suggested by @ysds --- site/content/docs/5.0/components/collapse.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/site/content/docs/5.0/components/collapse.md b/site/content/docs/5.0/components/collapse.md index 24ac5609c1b4..dbf0dcca87ec 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
-
+

-

From 58a9d5f6741fea4beca0b6389e1c6e640b2f0dc0 Mon Sep 17 00:00:00 2001 From: "Patrick H. Lauke" Date: Sat, 1 Aug 2020 01:46:15 +0100 Subject: [PATCH 3/3] Tweak accessibility note for accordions and optional keyboard interactions --- site/content/docs/5.0/components/collapse.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/content/docs/5.0/components/collapse.md b/site/content/docs/5.0/components/collapse.md index dbf0dcca87ec..349d26da5588 100644 --- a/site/content/docs/5.0/components/collapse.md +++ b/site/content/docs/5.0/components/collapse.md @@ -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