chore(backlog): 记录 g102 完成

This commit is contained in:
HIsheR
2026-10-26 13:51:46 +08:00
parent abfbb821b7
commit f4701af984
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -1179,7 +1179,7 @@
"motivation": "modal 与 drawer 各自复制了一份 25 行的 Tab 焦点陷阱(focusables + keydown 环形回绕),改一处漏一处;image 的全屏预览层是 role=dialog aria-modal,却完全没有焦点陷阱也没把焦点移进去,键盘用户 Tab 一下就穿到背后的页面",
"acceptance": "overlay.ts 新增 trapFocus(box, isOpen):Tab / Shift+Tab 首尾环形,有无可用焦点与焦点在容器外的两种情况都拦回;modal / drawer 删掉本地实现改为调用(行为不变);image 预览层补 tabindex=-1 + 打开即聚焦 + 全程锁焦点;npm run check 全绿",
"notes": "自补:一致性与无障碍;陷阱实现单一来源,后续新增模态层直接复用",
"status": "open"
"status": "done"
}
]
}