diff options
Diffstat (limited to 'vendor/twbs/bootstrap/site/layouts/shortcodes/js-dismiss.html')
-rw-r--r-- | vendor/twbs/bootstrap/site/layouts/shortcodes/js-dismiss.html | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/vendor/twbs/bootstrap/site/layouts/shortcodes/js-dismiss.html b/vendor/twbs/bootstrap/site/layouts/shortcodes/js-dismiss.html deleted file mode 100644 index 45d72d0eb..000000000 --- a/vendor/twbs/bootstrap/site/layouts/shortcodes/js-dismiss.html +++ /dev/null @@ -1,15 +0,0 @@ -{{- /* Usage: js-dismiss "ComponentName" */ -}} - -{{- $name := .Get 0 -}} - -Dismissal can be achieved with the `data` 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: - -```html -<button type="button" class="btn-close" data-bs-dismiss="{{ $name }}" data-bs-target="#my-{{ $name }}" aria-label="Close"></button> -``` |