From dfbde6fbc1c52517361f44eeebf7b61e79580531 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Thu, 24 Sep 2026 21:07:09 +0800 Subject: [PATCH] =?UTF-8?q?3D=20=E7=94=9F=E6=88=90=E9=9D=A2=E6=9D=BF?= =?UTF-8?q?=E8=A1=A5=20TODO=EF=BC=9A=E5=BC=B9=E5=87=BA=E5=BC=8F=E5=AF=B9?= =?UTF-8?q?=E8=AF=9D=E6=A1=86=E7=9A=84=E6=A0=87=E8=AE=B0=E4=B8=8E=E7=84=A6?= =?UTF-8?q?=E7=82=B9=E7=AE=A1=E7=90=86=E8=A6=81=E4=B8=80=E8=B5=B7=E5=81=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 面板容器只标了 role="dialog"、没标 aria-modal,也没有焦点约束与焦点归还(评审 #74) - 加上 TODO(a11y-modal) 说明为什么单独补标记反而会误导,以及「与焦点管理一起做 / 一次性推广到所有同类面板」两条路,本轮不改行为 --- .../model3d-generation/Model3dGenerationModal.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/image-editor/model3d-generation/Model3dGenerationModal.tsx b/src/components/image-editor/model3d-generation/Model3dGenerationModal.tsx index 9ada94bc4..9cd714bf9 100644 --- a/src/components/image-editor/model3d-generation/Model3dGenerationModal.tsx +++ b/src/components/image-editor/model3d-generation/Model3dGenerationModal.tsx @@ -97,6 +97,11 @@ export function Model3dGenerationModal({ }); return ( + // TODO(a11y-modal): 这里只标了 role="dialog",没标 aria-modal,也没有把键盘焦点锁在面板内、 + // 关闭后还回原处。读屏软件因此不知道面板之外的页面此时应该失效,Tab 也能跑到面板外面 + // (评审 #74)。单补一个标记而不做焦点管理只会给出错误的提示,而且仓库里 20 多个同类面板 + // 都没有这个标记,只给 3D 面板加反而不一致;要么和焦点管理一起做,要么一次性推广到所有 + // 同类面板。