Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@gmail.com>2021-07-30 08:56:36 +0300
committerGitHub <noreply@github.com>2021-07-30 08:56:36 +0300
commit23fd488c380c347a3d0121a49b6285bdd65418a2 (patch)
treeb22bc59c0598499c429ea9fa32eb01d5b3f35cad /site/content/docs
parent742269a73494300c149ca916328f3762cae616cc (diff)
Add missing newlines around fenced codeblocks (#34630)
Diffstat (limited to 'site/content/docs')
-rw-r--r--site/content/docs/5.0/components/alerts.md1
-rw-r--r--site/content/docs/5.0/components/modal.md1
2 files changed, 2 insertions, 0 deletions
diff --git a/site/content/docs/5.0/components/alerts.md b/site/content/docs/5.0/components/alerts.md
index 3389763239..1df07983e0 100644
--- a/site/content/docs/5.0/components/alerts.md
+++ b/site/content/docs/5.0/components/alerts.md
@@ -196,6 +196,7 @@ var alerts = [].slice.call(alertList).map(function (element) {
return new bootstrap.Alert(element)
})
```
+
{{< callout info >}}
For the sole purpose of dismissing an alert, it isn't necessary to initialize the component manually via the JS API. By making use of `data-bs-dismiss="alert"`, the component will be initialized automatically and properly dismissed.
diff --git a/site/content/docs/5.0/components/modal.md b/site/content/docs/5.0/components/modal.md
index 56fad0297d..7b8902820f 100644
--- a/site/content/docs/5.0/components/modal.md
+++ b/site/content/docs/5.0/components/modal.md
@@ -838,6 +838,7 @@ Activate a modal without writing JavaScript. Set `data-bs-toggle="modal"` on a c
```html
<button type="button" data-bs-toggle="modal" data-bs-target="#myModal">Launch modal</button>
```
+
#### Dismiss
{{% js-dismiss "modal" %}}