summaryrefslogtreecommitdiffstats
path: root/site/content/docs/5.3/components/collapse.md
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-08-06 07:58:36 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-08-06 07:58:36 +0000
commit548342184e2173d6f39aba2462196ff8b397db8f (patch)
tree995bd2844c5f4e453bdd21d27ff0417af1c910c5 /site/content/docs/5.3/components/collapse.md
parentAdding upstream version 5.3.0+dfsg. (diff)
downloadbootstrap-html-548342184e2173d6f39aba2462196ff8b397db8f.tar.xz
bootstrap-html-548342184e2173d6f39aba2462196ff8b397db8f.zip
Adding upstream version 5.3.1+dfsg.upstream/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.md4
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>