From 13af425dfadaa94c8c5fc323d2ebd7cffe1bf027 Mon Sep 17 00:00:00 2001 From: Jake Date: Thu, 7 May 2026 10:02:08 +0100 Subject: [PATCH] fix(hotkey): surface Esc-to-cancel hint and replace recording-keyframe reuse with success flash Two scoped fixes to HotkeyRecorder: - Append "Esc to cancel." to the recording prompt so the existing Escape handler is discoverable. srStatus already mentions Escape; no harmonisation needed. - Replace animate-pulse-warm on the captured state with a static bg-success/10 + border-success/40 flash. pulse-warm is the recording-active keyframe; reusing it for the saved state muddled the visual vocabulary. The global * transition rule already animates background-color and border-color over --duration-ui (150ms) with the brand cubic-bezier ease, so no new keyframe is needed and prefers-reduced-motion is honoured automatically. Also swapped transition-all for transition-colors to comply with the no-transition-all brand-motion rule. --- src/lib/components/HotkeyRecorder.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/components/HotkeyRecorder.svelte b/src/lib/components/HotkeyRecorder.svelte index 24eec34..307caca 100644 --- a/src/lib/components/HotkeyRecorder.svelte +++ b/src/lib/components/HotkeyRecorder.svelte @@ -189,16 +189,16 @@ {recording ? 'bg-bg-input border-accent shadow-[0_0_0_3px_rgba(201,133,85,0.1)]' : captured - ? 'bg-bg-input border-border animate-pulse-warm' + ? 'bg-success/10 border-success/40' : 'bg-bg-input border-border hover:border-border'} - border transition-all" + border transition-colors" onclick={startRecording} aria-label={ariaLabel} aria-pressed={recording} > {srStatus} {#if recording} - Hold Ctrl/Alt/Super + key... + Hold Ctrl/Alt/Super + key. Esc to cancel. {:else} {#each chips as chip, i} {#if i > 0}