From 0c1de9a93d451a946177452319adba4558b5613a Mon Sep 17 00:00:00 2001 From: Josh Creek <8179928+jcreek@users.noreply.github.com> Date: Tue, 15 Sep 2026 17:49:04 +0100 Subject: [PATCH] =?UTF-8?q?fix(a11y):=20trap=20focus=20inside=20the=20pok?= =?UTF-8?q?=C3=A9dex=20modal?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tab moved to the page behind the open dialog and closing it left focus nowhere. Keep Tab within the dialog, move focus to the close button on open, restore it to the trigger on close, and give the dialog an accessible name. --- .../components/pokedex/PokedexModal.svelte | 47 +++++++++++++++---- 1 file changed, 39 insertions(+), 8 deletions(-) diff --git a/src/lib/components/pokedex/PokedexModal.svelte b/src/lib/components/pokedex/PokedexModal.svelte index 49d4cf2..f1403e9 100644 --- a/src/lib/components/pokedex/PokedexModal.svelte +++ b/src/lib/components/pokedex/PokedexModal.svelte @@ -1,5 +1,5 @@ {#if isOpen} -