From 7a30af5af0d098f673bae4c00a0998e5eb07b294 Mon Sep 17 00:00:00 2001 From: Hongming Wang Date: Sun, 3 May 2026 21:06:17 -0700 Subject: [PATCH] canvas/MemoryTab: fix 9 hover bugs (4 light + 4 no-op + Delete no-op) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Three matched fixes — same patterns shipped on OnboardingWizard, ConfirmDialog, ApprovalBanner. 1. 4× bg-accent-strong hover:bg-accent (Save, Add, two Show buttons) hovered LIGHTER on white text — accent is the lighter variant, so contrast dropped below AA on hover. Flipped: bg-accent hover:bg-accent-strong. 2. 4× bg-surface-card hover:bg-surface-card no-op hovers (Collapse, Open, Hide-Advanced, Refresh, Cancel). Lift to surface-elevated so the buttons visibly respond. 3. Delete row button: text-bad hover:text-bad was a no-op. Switched to a light hover bg + focus-visible danger ring so the destructive action visibly responds and keyboard users see focus. Co-Authored-By: Claude Opus 4.7 (1M context) --- canvas/src/components/tabs/MemoryTab.tsx | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/canvas/src/components/tabs/MemoryTab.tsx b/canvas/src/components/tabs/MemoryTab.tsx index a0afb81d..2c5055f7 100644 --- a/canvas/src/components/tabs/MemoryTab.tsx +++ b/canvas/src/components/tabs/MemoryTab.tsx @@ -137,14 +137,14 @@ export function MemoryTab({ workspaceId }: Props) { @@ -177,7 +177,7 @@ export function MemoryTab({ workspaceId }: Props) { @@ -212,21 +212,21 @@ export function MemoryTab({ workspaceId }: Props) { @@ -262,7 +262,7 @@ export function MemoryTab({ workspaceId }: Props) { @@ -272,7 +272,7 @@ export function MemoryTab({ workspaceId }: Props) { setShowAdd(false); setError(null); }} - className="px-3 py-1 bg-surface-card hover:bg-surface-card text-xs rounded text-ink-mid" + className="px-3 py-1 bg-surface-card hover:bg-surface-elevated text-xs rounded text-ink-mid" > Cancel @@ -318,7 +318,11 @@ export function MemoryTab({ workspaceId }: Props) { @@ -340,7 +344,7 @@ export function MemoryTab({ workspaceId }: Props) {