diff options
| author | XhmikosR <[email protected]> | 2021-01-07 12:25:32 +0200 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2021-01-08 12:04:37 +0200 |
| commit | b633c2befe854c3bb91c0405a4409e039dae2cd2 (patch) | |
| tree | 724ba469aaba10175a4413ac3c830fa28fb2a05d | |
| parent | 4540436f3de65a34fd9dba39c21c7a1fb15910a8 (diff) | |
| download | bootstrap-b633c2befe854c3bb91c0405a4409e039dae2cd2.tar.xz bootstrap-b633c2befe854c3bb91c0405a4409e039dae2cd2.zip | |
Backport #32632
Docs: Tweak the wording for collapse to indicate button is preferred/more semantic
| -rw-r--r-- | site/content/docs/4.5/components/collapse.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/site/content/docs/4.5/components/collapse.md b/site/content/docs/4.5/components/collapse.md index ad47ac38d..020237cfd 100644 --- a/site/content/docs/4.5/components/collapse.md +++ b/site/content/docs/4.5/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-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> |
