Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(conversations): improve new thread hover contrast\n\nUse darker hover text shades for the new thread action to meet AA contrast requirements and match the accented sidebar styling.\n\nAuto-committed-on: macbook\n

Steven Enamakele0da2aa3837d
diff --git a/app/src/features/conversations/threadList/ThreadList.tsx b/app/src/features/conversations/threadList/ThreadList.tsx
index 40178bf7d6..1e092efa09 100644
--- a/app/src/features/conversations/threadList/ThreadList.tsx
+++ b/app/src/features/conversations/threadList/ThreadList.tsx
@@ -103,7 +103,12 @@ export function ThreadList({
the two read as one edge language rather than two.
The accent arrives on HOVER instead: border, text and a 10% fill all
- go primary together. That keeps the resting state as quiet as the
+ go primary together. The text shades are `700` / `dark:300` — the
+ same pair `TwoPaneNav` uses for an accented sidebar row, which is
+ exactly what this is. `600` / `dark:400` sits at 4.53:1 against the
+ 10% fill it is painted on, which clears AA's 4.5 for 14px by 0.03;
+ `700` is 5.87:1 for free, and `dark:300` is the dominant dark pairing
+ in this codebase (68 call sites to `400`'s 37). That keeps the resting state as quiet as the
argument above requires while making the row unmistakably the
actionable one the moment it is pointed at. The `+` inherits it for
free through `currentColor`.
@@ -120,7 +125,7 @@ export function ThreadList({
data-analytics-id="chat-sidebar-new-thread"
onClick={onCreateThread}
title={t('chat.newThreadShortcut')}
- className="group flex h-8 w-full flex-none cursor-pointer items-center justify-between gap-1.5 rounded-md border border-content-faint/35 px-3 text-left text-[14px] text-content-muted transition-colors hover:border-primary-500/60 hover:bg-primary-500/10 hover:text-primary-600 dark:hover:text-primary-400">
+ className="group flex h-8 w-full flex-none cursor-pointer items-center justify-between gap-1.5 rounded-md border border-content-faint/35 px-3 text-left text-[14px] text-content-muted transition-colors hover:border-primary-500/60 hover:bg-primary-500/10 hover:text-primary-700 dark:hover:text-primary-300">
<span className="truncate">{t('chat.newConversation')}</span>
<svg
className="h-3.5 w-3.5 flex-none"