]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Enhance Alerts > Live Example section (#34769)
authorJulien Déramond <julien.deramond@orange.com>
Mon, 30 Aug 2021 13:00:16 +0000 (15:00 +0200)
committerGitHub <noreply@github.com>
Mon, 30 Aug 2021 13:00:16 +0000 (16:00 +0300)
site/content/docs/5.1/components/alerts.md

index 1df07983e05bc0a221ae5f57a8c86761cfe1bc70..0d009d0a0d31479f2b6e05bf82d4332c593eea3b 100644 (file)
@@ -27,20 +27,10 @@ Alerts are available for any length of text, as well as an optional close button
 
 Click the button below to show an alert (hidden with inline styles to start), then dismiss (and destroy) it with the built-in close button.
 
+{{< example >}}
 <div id="liveAlertPlaceholder"></div>
-
-<div class="bd-example">
-  <button type="button" class="btn btn-primary" id="liveAlertBtn">Show live alert</button>
-</div>
-
-```html
 <button type="button" class="btn btn-primary" id="liveAlertBtn">Show live alert</button>
-
-<div class="alert alert-primary alert-dismissible" role="alert" id="liveAlert">
-  <strong>Nice!</strong> You've triggered this alert.
-  <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
-</div>
-```
+{{< /example >}}
 
 We use the following JavaScript to trigger our live alert demo: