feat(a11y): add focus lock dependency and useDialogFocus hook

- Install react-focus-lock@2.13.7 for focus trap functionality
- Create useDialogFocus hook with focus management, Escape key handling,
  initial focus, focus restoration, and body scroll lock
- Create E2E test infrastructure with helper functions for focus testing
- Compatible with React 19 and Electron 39
This commit is contained in:
test
2026-03-08 17:01:00 +08:00
parent fba2c73782
commit 62e1647eaf
4 changed files with 690 additions and 5 deletions

View File

@@ -42,6 +42,7 @@
"mysql2": "^3.18.2",
"playwright": "^1.58.2",
"playwright-core": "^1.58.2",
"react-focus-lock": "^2.13.7",
"reflect-metadata": "^0.2.2",
"typeorm": "^0.3.28",
"uuid": "^13.0.0",