From: Hannah Issermann Date: Fri, 10 Mar 2023 17:23:59 +0000 (+0100) Subject: Improve docs on Modals, Alerts, Offcanvas and Toasts close triggers examples (#38182) X-Git-Tag: v5.3.0-alpha2~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd7cfac4cbd05049da73427c6aa57d1201e523a6;p=thirdparty%2Fbootstrap.git 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 --------- Co-authored-by: Mark Otto Co-authored-by: Julien Déramond --- diff --git a/site/layouts/shortcodes/js-dismiss.html b/site/layouts/shortcodes/js-dismiss.html index 45d72d0eb2..3d0c27883f 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 ``` -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