aboutsummaryrefslogtreecommitdiff
path: root/src/lib/List/Anime/AnimeListTemplate.svelte
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-05-15 09:17:28 +0000
committerFuwn <[email protected]>2026-05-15 09:17:28 +0000
commitdd04b2a400958359d7a76e9c5564adbfdf75a01a (patch)
tree52e7387520da16f6043ef2ba2d108c75aec4df45 /src/lib/List/Anime/AnimeListTemplate.svelte
parentfeat(a11y): respect prefers-reduced-motion (diff)
downloaddue.moe-dd04b2a400958359d7a76e9c5564adbfdf75a01a.tar.xz
due.moe-dd04b2a400958359d7a76e9c5564adbfdf75a01a.zip
fix(a11y): make header Dropdown keyboard-operable
Wire Enter/Space/ArrowDown/ArrowUp/Escape on the toggle and ArrowDown/ArrowUp/Home/End/Escape on each item so the Schedule and Profile menus are reachable without a mouse. Add aria-haspopup, aria-expanded, aria-controls, and role=menu/menuitem; give each instance a unique toggle/menu id so the two header dropdowns no longer collide. Close the menu on item activation so preventDefault items (e.g. Log Out) don't leave it hanging open. Focus moves via `await tick()` so :focus-visible matches reliably, with a scoped fallback outline tuned to var(--base0D) for the menu items.
Diffstat (limited to 'src/lib/List/Anime/AnimeListTemplate.svelte')
0 files changed, 0 insertions, 0 deletions