diff options
author | Wolfgang Müller | 2024-11-22 18:15:31 +0100 |
---|---|---|
committer | Wolfgang Müller | 2024-11-22 18:15:31 +0100 |
commit | 940ef5c245d29b1441bfa1a88c808f637075b109 (patch) | |
tree | 58ce0f429f8cd16f4d5003c39085dd1ab3803325 /frontend | |
parent | 92e087a1d9a837517496c2e4b577ee51b3bba80e (diff) | |
download | hircine-940ef5c245d29b1441bfa1a88c808f637075b109.tar.gz |
frontend: Ignore tabindex for container divs
These two break the tabbing flow, instead focus the next item within the
container.
Diffstat (limited to 'frontend')
-rw-r--r-- | frontend/src/lib/gallery/Gallery.svelte | 2 | ||||
-rw-r--r-- | frontend/src/routes/+layout.svelte | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/frontend/src/lib/gallery/Gallery.svelte b/frontend/src/lib/gallery/Gallery.svelte index c3b6386..964c677 100644 --- a/frontend/src/lib/gallery/Gallery.svelte +++ b/frontend/src/lib/gallery/Gallery.svelte @@ -5,7 +5,7 @@ export let pages: PageFragment[]; </script> -<div class="max-h-full gap-2 overflow-auto p-1 pr-3"> +<div class="max-h-full gap-2 overflow-auto p-1 pr-3" tabindex="-1"> {#each pages as page, index} <GalleryPage {page} {index} on:open on:cover /> {/each} diff --git a/frontend/src/routes/+layout.svelte b/frontend/src/routes/+layout.svelte index 0eefed1..9a5f3d2 100644 --- a/frontend/src/routes/+layout.svelte +++ b/frontend/src/routes/+layout.svelte @@ -68,7 +68,7 @@ </Link> </Navigation> -<div class="min-w-[360px] overflow-auto p-4"> +<div class="min-w-[360px] overflow-auto p-4" tabindex="-1"> <slot /> </div> |