Skip to content

Commit

Permalink
Backport #32632
Browse files Browse the repository at this point in the history
Docs: Tweak the wording for collapse to indicate button is preferred/more semantic
  • Loading branch information
XhmikosR committed Jan 7, 2021
1 parent 01c1035 commit 300fdc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/content/docs/4.5/components/collapse.md
Expand Up @@ -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>
Expand Down

0 comments on commit 300fdc5

Please sign in to comment.