From 4d747de218eb2bcf5befe6c4198dc604662f9de9 Mon Sep 17 00:00:00 2001 From: Hongming Wang Date: Sun, 3 May 2026 18:49:19 -0700 Subject: [PATCH] canvas/OnboardingWizard: theme-flip colors + fix hover traps + focus rings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Five fixes for the first-time-user wizard. Every new user sees this, so visual bugs here have outsized impact. 1. Action button hovered LIGHTER: bg-accent-strong/90 hover:bg-accent. accent is the LIGHTER variant — hovering to it on white text drops contrast below AA. Flipped the direction: bg-accent hover:bg-accent-strong, matching the same trap fixed in ConfirmDialog and ApprovalBanner. 2. "Next" button hover was a no-op (bg-surface-card on top of itself). Lift to surface-elevated, matching the Cancel pattern in ConfirmDialog. 3. Progress bar gradient was hardcoded from-blue-500 to-sky-400 — neither tone exists in the warm-paper light theme, so the bar lost brand color in light mode. Switched to the accent ramp so it stays brand-tinted in both. 4. Step indicator was hardcoded text-sky-400/80, same theme-flip issue. Switched to text-accent. 5. All three buttons (Skip / Action / Next) had no focus-visible rings. Added the accent ring pattern used across the rest of the canvas. Co-Authored-By: Claude Opus 4.7 (1M context) --- canvas/src/components/OnboardingWizard.tsx | 23 ++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/canvas/src/components/OnboardingWizard.tsx b/canvas/src/components/OnboardingWizard.tsx index 501fa957..b513636b 100644 --- a/canvas/src/components/OnboardingWizard.tsx +++ b/canvas/src/components/OnboardingWizard.tsx @@ -134,10 +134,12 @@ export function OnboardingWizard() { aria-label="Onboarding guide" className="fixed bottom-20 left-4 z-50 w-80 rounded-2xl border border-line/60 bg-surface-sunken/95 backdrop-blur-xl shadow-2xl shadow-black/40 overflow-hidden" > - {/* Progress bar */} + {/* Progress bar — was hardcoded from-blue-500 to-sky-400, neither + tone exists in warm-paper light theme. Switched to the accent + ramp so the gradient reads as brand color in both themes. */}
@@ -155,14 +157,16 @@ export function OnboardingWizard() {
{/* Step indicator */}
- + {/* text-sky-400/80 was hardcoded; flip to text-accent so the + indicator stays brand-tinted in both themes. */} + Step {currentStepIdx + 1} of {STEPS.length} @@ -181,7 +185,11 @@ export function OnboardingWizard() {