mirror of
https://github.com/dong-nz/cv.git
synced 2026-11-22 16:10:40 +07:00
fix(mobile-menu): focus the sheet panel instead of the Home link so its text stops rolling on open
This commit is contained in:
1 parent
6cd665960a
commit
75ebf65e92
5 files changed
+28
-20
No files matched your search
@@ -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`.
|
||||
|
||||
|
||||
Reference in new issue
Block a user