Adding upstream version 5.2.3+dfsg.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
b80f12a01d
commit
bc475d7d0d
617 changed files with 89471 additions and 0 deletions
15
site/layouts/shortcodes/js-dismiss.html
Normal file
15
site/layouts/shortcodes/js-dismiss.html
Normal file
|
@ -0,0 +1,15 @@
|
|||
{{- /* 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>
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue