From c5e81304a31fc6dbbbbd50177481aedc8c11c32c Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Mon, 23 Nov 2026 14:04:08 +0100 Subject: web: add ARIA roles to drag-and-drop containers Static divs with drag handlers need an ARIA role: the main game list slots become listitems inside a list (they are reorderable list entries), and the draw-pile columns in the ability/modifier deck menus become labelled groups (they are drop zones for reordering). --- web/src/lib/ui/MainList.svelte | 3 ++- web/src/lib/ui/decks/AbilityCardsMenu.svelte | 2 +- web/src/lib/ui/decks/ModifierDeckMenu.svelte | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) (limited to 'web/src') diff --git a/web/src/lib/ui/MainList.svelte b/web/src/lib/ui/MainList.svelte index e83df7d..3abe09b 100644 --- a/web/src/lib/ui/MainList.svelte +++ b/web/src/lib/ui/MainList.svelte @@ -70,10 +70,11 @@ } -
+
{#if $gameState} {#each $gameState.currentList as item, i (item.id)}
-
(dragIndex = null)} ondrop={onDrop}> +
(dragIndex = null)} ondrop={onDrop}> {#each drawTopFirst as ref, i} {@const c = fullCard(ref)}
-
(dragIndex = null)} ondrop={onDrop}> +
(dragIndex = null)} ondrop={onDrop}> {#each drawTopFirst as card, i} {@const pileIndex = deck.drawPile.length - 1 - i}