aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick H. Lauke <[email protected]>2021-01-05 19:53:50 +0000
committerGitHub <[email protected]>2021-01-05 21:53:50 +0200
commite1e6f5684e880700e4b68ed08a07655f74753172 (patch)
treeafd823decdf1b5f44f83291de6e8732a2dd43602
parentd5b6971814e0b51804583d29a2b3001812c87b19 (diff)
downloadbootstrap-e1e6f5684e880700e4b68ed08a07655f74753172.tar.xz
bootstrap-e1e6f5684e880700e4b68ed08a07655f74753172.zip
Tweak the wording for collapse to indicate button is preferred/more semantic (#32632)
Co-authored-by: XhmikosR <[email protected]>
-rw-r--r--site/content/docs/5.0/components/collapse.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/site/content/docs/5.0/components/collapse.md b/site/content/docs/5.0/components/collapse.md
index 57ee78e10..8546aaeb5 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 >}}
<p>