diff options
| author | Fuwn <[email protected]> | 2026-05-15 09:17:28 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-05-15 09:17:28 +0000 |
| commit | dd04b2a400958359d7a76e9c5564adbfdf75a01a (patch) | |
| tree | 52e7387520da16f6043ef2ba2d108c75aec4df45 /static/styles/risotto | |
| parent | feat(a11y): respect prefers-reduced-motion (diff) | |
| download | due.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 'static/styles/risotto')
0 files changed, 0 insertions, 0 deletions