diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-08-06 07:58:47 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-08-06 07:58:47 +0000 |
commit | 93d3b4da94cc34f7c55e39cfbed159f0e2886328 (patch) | |
tree | 72efc9b38e0e49fd402131e8c076523f14dc4f59 /site/content/docs/5.3/components/collapse.md | |
parent | Releasing debian version 5.3.0+dfsg-1. (diff) | |
download | bootstrap-html-93d3b4da94cc34f7c55e39cfbed159f0e2886328.tar.xz bootstrap-html-93d3b4da94cc34f7c55e39cfbed159f0e2886328.zip |
Merging upstream version 5.3.1+dfsg.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'site/content/docs/5.3/components/collapse.md')
-rw-r--r-- | site/content/docs/5.3/components/collapse.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/site/content/docs/5.3/components/collapse.md b/site/content/docs/5.3/components/collapse.md index 21b9c3e..d517115 100644 --- a/site/content/docs/5.3/components/collapse.md +++ b/site/content/docs/5.3/components/collapse.md @@ -25,7 +25,7 @@ Click the buttons below to show and hide another element via class changes: 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 an `<a>` link with the `href` attribute (and a `role="button"`). In both cases, the `data-bs-toggle="collapse"` is required. {{< example >}} -<p> +<p class="d-inline-flex gap-1"> <a class="btn btn-primary" data-bs-toggle="collapse" href="#collapseExample" role="button" aria-expanded="false" aria-controls="collapseExample"> Link with href </a> @@ -69,7 +69,7 @@ A `<button>` or `<a>` element can show and hide multiple elements by referencing Conversely, multiple `<button>` or `<a>` elements can show and hide the same element if they each reference it with their `data-bs-target` or `href` attribute. {{< example >}} -<p> +<p class="d-inline-flex gap-1"> <a class="btn btn-primary" data-bs-toggle="collapse" href="#multiCollapseExample1" role="button" aria-expanded="false" aria-controls="multiCollapseExample1">Toggle first element</a> <button class="btn btn-primary" type="button" data-bs-toggle="collapse" data-bs-target="#multiCollapseExample2" aria-expanded="false" aria-controls="multiCollapseExample2">Toggle second element</button> <button class="btn btn-primary" type="button" data-bs-toggle="collapse" data-bs-target=".multi-collapse" aria-expanded="false" aria-controls="multiCollapseExample1 multiCollapseExample2">Toggle both elements</button> |