Commit dbd4c0f
fix(a11y): hide mobile sidebar from keyboard when closed
Add visibility:hidden to the closed sidebar state on mobile so keyboard
users cannot tab into off-screen navigation. The transition is staggered:
visibility becomes hidden only after the slide-out animation completes
(via visibility 0s <duration> delay), and becomes visible immediately
when opening so the slide-in starts visible.
The desktop override resets visibility:visible so the persistent sidebar
is always focusable at ≥1024px.
Fixes: #128 (comment)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 1754e68 commit dbd4c0f
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
| 243 | + | |
243 | 244 | | |
244 | | - | |
| 245 | + | |
| 246 | + | |
245 | 247 | | |
246 | 248 | | |
247 | 249 | | |
248 | 250 | | |
249 | 251 | | |
250 | 252 | | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
251 | 257 | | |
252 | 258 | | |
253 | 259 | | |
| |||
463 | 469 | | |
464 | 470 | | |
465 | 471 | | |
| 472 | + | |
466 | 473 | | |
467 | 474 | | |
468 | 475 | | |
| |||
0 commit comments