From b6ff280ca366b2edf9064e94e0b003f4d641b92c Mon Sep 17 00:00:00 2001 From: Hongming Wang Date: Sun, 3 May 2026 22:56:33 -0700 Subject: [PATCH] canvas/CreateWorkspaceDialog: hover sweep + semantic placeholders + focus rings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sweep on the workspace-creation dialog — same patterns shipped on every other surface. - 2× bg-accent-strong hover:bg-accent (FAB + Create) hovered LIGHTER on white text → bg-accent hover:bg-accent-strong + focus-visible rings. - Cancel: bg-surface-card hover:bg-surface-card no-op → surface- elevated + focus-visible ring. - 4× placeholder-zinc-500/600 hardcoded → placeholder-ink-soft so placeholders flip with theme. - FAB shadow tinting (shadow-blue-600/20 + shadow-blue-500/30) was hardcoded blue with no theme variant; switched to shadow-accent so the glow tint matches the brand mint accent in both modes. Co-Authored-By: Claude Opus 4.7 (1M context) --- canvas/src/components/CreateWorkspaceDialog.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/canvas/src/components/CreateWorkspaceDialog.tsx b/canvas/src/components/CreateWorkspaceDialog.tsx index b47e2564..51d15d2f 100644 --- a/canvas/src/components/CreateWorkspaceDialog.tsx +++ b/canvas/src/components/CreateWorkspaceDialog.tsx @@ -310,7 +310,7 @@ export function CreateWorkspaceButton() { return ( - @@ -560,7 +560,7 @@ export function CreateWorkspaceButton() { type="button" onClick={handleCreate} disabled={creating} - className="px-5 py-2 bg-accent-strong hover:bg-accent active:bg-accent-strong text-sm rounded-lg text-white disabled:opacity-50 transition-colors" + className="px-5 py-2 bg-accent hover:bg-accent-strong active:bg-accent text-sm rounded-lg text-white disabled:opacity-50 transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-accent/60 focus-visible:ring-offset-1 focus-visible:ring-offset-surface" > {creating ? "Creating..." : "Create"} @@ -623,7 +623,7 @@ function InputField({ placeholder={placeholder} min={type === "number" ? "0" : undefined} step={type === "number" ? "0.01" : undefined} - className={`w-full bg-surface-card/60 border border-line/50 rounded-lg px-3 py-2 text-sm text-ink placeholder-zinc-500 focus:outline-none focus:border-accent/60 focus:ring-1 focus:ring-accent/20 transition-colors ${mono ? "font-mono text-xs" : ""}`} + className={`w-full bg-surface-card/60 border border-line/50 rounded-lg px-3 py-2 text-sm text-ink placeholder-ink-soft focus:outline-none focus:border-accent/60 focus:ring-1 focus:ring-accent/20 transition-colors ${mono ? "font-mono text-xs" : ""}`} /> {helper && (

{helper}