]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Improve docs on Modals, Alerts, Offcanvas and Toasts close triggers examples (#38182)
authorHannah Issermann <hannah.issermann@orange.com>
Fri, 10 Mar 2023 17:23:59 +0000 (18:23 +0100)
committerGitHub <noreply@github.com>
Fri, 10 Mar 2023 17:23:59 +0000 (11:23 -0600)
* Improve docs on Modals, Alerts, Offcanvas and Toasts close triggers examples

* Update site/layouts/shortcodes/js-dismiss.html

Co-authored-by: Julien Déramond <juderamond@gmail.com>
---------

Co-authored-by: Mark Otto <markdotto@gmail.com>
Co-authored-by: Julien Déramond <juderamond@gmail.com>
site/layouts/shortcodes/js-dismiss.html

index 45d72d0eb28c1c55ea60328feaf30aba4212073c..3d0c27883fc05fa02561142325869fcd09dbe16c 100644 (file)
@@ -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>