]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Tweak the wording for collapse to indicate button is preferred/more semantic (#32632)
authorPatrick H. Lauke <redux@splintered.co.uk>
Tue, 5 Jan 2021 19:53:50 +0000 (19:53 +0000)
committerGitHub <noreply@github.com>
Tue, 5 Jan 2021 19:53:50 +0000 (21:53 +0200)
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
site/content/docs/5.0/components/collapse.md

index 57ee78e1027fe1ce935195b30a5ad70862806d1b..8546aaeb50a1f6c9e7ca7c555208bac13a5c7aa9 100644 (file)
@@ -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>