From 3cd6f2f11acaecc0e0f2934c979f1d24115d92e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Thu, 8 Oct 2026 11:03:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20AGC=20=E5=8F=91=E5=B8=83?= =?UTF-8?q?=E5=85=A5=E5=8F=A3=E9=94=AE=E7=9B=98=E7=84=A6=E7=82=B9=E4=B8=8D?= =?UTF-8?q?=E5=8F=AF=E8=BE=A8=E8=AE=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - :focus-visible 保留 brightness 反馈并补 2px 可见 outline 与 2px 偏移 - hover 与 focus-visible 拆成独立规则,避免 outline:none 覆盖焦点环 --- apps/ai-game-creator-shell/src/styles.css | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/apps/ai-game-creator-shell/src/styles.css b/apps/ai-game-creator-shell/src/styles.css index 929a4861d..6dddc27e7 100644 --- a/apps/ai-game-creator-shell/src/styles.css +++ b/apps/ai-game-creator-shell/src/styles.css @@ -12862,12 +12862,18 @@ button.design-workspace-tree__entry:hover, .game-workbench-chat .project-chat-surface.is-direct-codex - .project-chat-publish-trigger:hover:not(:disabled), + .project-chat-publish-trigger:hover:not(:disabled) { + filter: brightness(1.05); +} + +/* 键盘焦点要有可辨认的指示:仅靠 5% 亮度差在实心主色胶囊上几乎看不出来,保留亮度反馈的同时补一圈 + 可见 outline;`:focus-visible` 只在键盘/辅助技术聚焦时命中,不会给鼠标点击加环。 */ .game-workbench-chat .project-chat-surface.is-direct-codex .project-chat-publish-trigger:focus-visible { filter: brightness(1.05); - outline: none; + outline: 2px solid var(--platform-button-primary-border); + outline-offset: 2px; } .game-workbench-chat