Improve the multi-select behaviour/appearance and display how many selections are made/required

This commit is contained in:
Oliver 2026-02-01 01:19:39 -07:00
parent 0381df035e
commit 812583f33c
7 changed files with 75 additions and 20 deletions

View file

@ -6,18 +6,20 @@
src="{{tb-filePath image.path}}"
alt=""
>
{{#if (eq selectMode "single")}}
{{#if is.single}}
<button
data-action="select"
>
Select
</button>
{{else if (eq selectMode "multi")}}
<button
{{else if is.multi}}
<input
type="checkbox"
aria-label="Select image"
data-action="select"
aria-pressed="{{image.selected}}"
{{checked image.selected}}
>
Select (Multi)
</button>
{{/if}}
</li>