From f070c72ee6df54b64cf2daffd65f97bce7c92c8d Mon Sep 17 00:00:00 2001 From: "Patrick H. Lauke" Date: Sun, 27 Dec 2020 22:21:42 +0000 Subject: [PATCH] Tweak the wording for collapse to indicate button is preferred/more semantic --- 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 57ee78e1027f..8546aaeb50a1 100644 --- a/site/content/docs/5.0/components/collapse.md +++ b/site/content/docs/5.0/components/collapse.md @@ -22,7 +22,7 @@ Click the buttons below to show and hide another element via class changes: - `.collapsing` is applied during transitions - `.collapse.show` shows content -You can use a link with the `href` attribute, or a button with the `data-bs-target` attribute. In both cases, the `data-bs-toggle="collapse"` is required. +Generally, we recommend using a button with the `data-bs-target` attribute. While not recommended from a semantic point of view, you can also use a link with the `href` attribute (and a `role="button"`). In both cases, the `data-bs-toggle="collapse"` is required. {{< example >}}