]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Backport #32632
authorXhmikosR <xhmikosr@gmail.com>
Thu, 7 Jan 2021 10:25:32 +0000 (12:25 +0200)
committerXhmikosR <xhmikosr@gmail.com>
Fri, 8 Jan 2021 10:04:37 +0000 (12:04 +0200)
Docs: Tweak the wording for collapse to indicate button is preferred/more semantic

site/content/docs/4.5/components/collapse.md

index ad47ac38d5622fb20977713d9afa199a647203f5..020237cfd509aaee21193f23d0ec69aea79974f9 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-target` attribute. In both cases, the `data-toggle="collapse"` is required.
+Generally, we recommend using a button with the `data-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-toggle="collapse"` is required.
 
 {{< example >}}
 <p>