fix(mobile-menu): focus the sheet panel instead of the Home link so its text stops rolling on open

This commit is contained in:
dong.nguyen committed 2026-10-17 15:11:21 +07:00
1 parent 6cd665960a
commit 75ebf65e92
5 files changed
+28 -20

No files matched your search

+1 -1
View File
@@ -113,7 +113,7 @@ Spec: `specs/v3/spec-v3-theme-palette-switch.md`.
|---|---|
| Trigger | Hamburger button in the bar, ≤1024px |
| Groups | Menu (6 routes) → Appearance (Language, Mode, Theme color) → Connect (GitHub, LinkedIn, email) |
| Behaviour | `role="dialog"` + `aria-modal="true"`, Escape closes from any focus position, `#main-content` / `.footer` / `.back-to-top` are `inert` while open, body scroll locked |
| Behaviour | `role="dialog"` + `aria-modal="true"` + `tabIndex={-1}`: focus lands on the panel itself on open — never on a link, because focusing a link fires its rolling-text animation — Escape closes from any focus position, `#main-content` / `.footer` / `.back-to-top` are `inert` while open, body scroll locked |
Spec: `specs/v3/spec-v3-mobile-navigation.md`.