2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-17 19:21:23 +03:00

Update some close button examples

This commit is contained in:
Mark Otto
2020-09-13 19:22:00 -07:00
committed by Mark Otto
parent 4778deac02
commit 67f33a06c7
2 changed files with 3 additions and 7 deletions
+1 -3
View File
@@ -90,9 +90,7 @@ alertList.forEach(function (alert) {
Or with `data` attributes on a button **within the alert**, as demonstrated above:
{{< highlight html >}}
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
<button type="button" class="btn-close" data-dismiss="alert" aria-label="Close"></button>
{{< /highlight >}}
Note that closing an alert will remove it from the DOM.