aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHannah Issermann <[email protected]>2023-03-10 18:23:59 +0100
committerGitHub <[email protected]>2023-03-10 11:23:59 -0600
commitfd7cfac4cbd05049da73427c6aa57d1201e523a6 (patch)
treec85d32f31e272ef30df6621cee907d11bdafd796
parent25579aad7c6db5423524bc6c41b2b070d547054c (diff)
downloadbootstrap-fd7cfac4cbd05049da73427c6aa57d1201e523a6.tar.xz
bootstrap-fd7cfac4cbd05049da73427c6aa57d1201e523a6.zip
Improve docs on Modals, Alerts, Offcanvas and Toasts close triggers examples (#38182)
* Improve docs on Modals, Alerts, Offcanvas and Toasts close triggers examples * Update site/layouts/shortcodes/js-dismiss.html Co-authored-by: Julien Déramond <[email protected]> --------- Co-authored-by: Mark Otto <[email protected]> Co-authored-by: Julien Déramond <[email protected]>
-rw-r--r--site/layouts/shortcodes/js-dismiss.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/site/layouts/shortcodes/js-dismiss.html b/site/layouts/shortcodes/js-dismiss.html
index 45d72d0eb..3d0c27883 100644
--- a/site/layouts/shortcodes/js-dismiss.html
+++ b/site/layouts/shortcodes/js-dismiss.html
@@ -2,13 +2,13 @@
{{- $name := .Get 0 -}}
-Dismissal can be achieved with the `data` attribute on a button **within the {{ $name }}** as demonstrated below:
+Dismissal can be achieved with the `data-bs-dismiss` attribute on a button **within the {{ $name }}** as demonstrated below:
```html
<button type="button" class="btn-close" data-bs-dismiss="{{ $name }}" aria-label="Close"></button>
```
-or on a button **outside the {{ $name }}** using the `data-bs-target` as demonstrated below:
+or on a button **outside the {{ $name }}** using the additional `data-bs-target` as demonstrated below:
```html
<button type="button" class="btn-close" data-bs-dismiss="{{ $name }}" data-bs-target="#my-{{ $name }}" aria-label="Close"></button>