mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 13:01:00 +00:00
fix(coach): show only the animated dots while the Coach is thinking
The pre-stream thinking bubble dropped the visible "Thinking…" word and now renders just the three bouncing dots. The label stays in an sr-only span so the thinking state is still announced to screen readers.
This commit is contained in:
1 parent
6a0f150218
commit
61e21ea28b
1 file changed
+3
-10
@@ -951,10 +951,9 @@ export function TypingDots({ label }: { label: string }) {
|
||||
return (
|
||||
<span
|
||||
data-slot="coach-typing-indicator"
|
||||
// v1.18.7 — show the word alongside the dots (Claude/ChatGPT-like
|
||||
// "Thinking…") with a gentle pulse, so the brief pre-stream beat
|
||||
// reads as deliberate rather than a frozen empty bubble. The dots
|
||||
// bounce in sequence; the label keeps the screen-reader text.
|
||||
// v1.21.2.1 — the pre-stream beat shows ONLY the three bouncing dots,
|
||||
// no "Thinking…" word. The label stays in an `sr-only` span so the
|
||||
// screen-reader still announces the thinking state.
|
||||
className="text-muted-foreground inline-flex items-center gap-2 py-0.5"
|
||||
>
|
||||
<span className="sr-only">{label}</span>
|
||||
@@ -967,12 +966,6 @@ export function TypingDots({ label }: { label: string }) {
|
||||
/>
|
||||
))}
|
||||
</span>
|
||||
<span
|
||||
aria-hidden="true"
|
||||
className="animate-pulse text-xs motion-reduce:animate-none"
|
||||
>
|
||||
{label}
|
||||
</span>
|
||||
</span>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user