Skip to content

Commit 23533dd

Browse files
samejrclaude
andcommitted
fix(webapp): brighten the secondary button on hover in the dark themes
bg-secondary is charcoal-650 and the hover was background-raised, which is charcoal-700 - a step down the scale, so the button dimmed. Hover now steps up to charcoal-600 (surface-control) on the dark themes, which is where it sat before the themes update. Light keeps darkening off white. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent f1b7413 commit 23533dd

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

apps/webapp/app/components/primitives/Buttons.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,10 @@ const theme = {
6969
secondary: {
7070
textColor: "text-text-bright transition group-disabled/button:text-text-dimmed/80",
7171
button:
72-
"bg-secondary border border-border-bright/50 shadow-xs group-hover/button:bg-background-raised group-disabled/button:bg-secondary group-disabled/button:opacity-60 group-disabled/button:pointer-events-none",
72+
// On light, hover darkens off white. On the dark themes bg-secondary is
73+
// charcoal-650, so hover steps one stop up the scale to charcoal-600
74+
// (surface-control) - background-raised is charcoal-700, i.e. darker.
75+
"bg-secondary border border-border-bright/50 shadow-xs group-hover/button:bg-background-raised dark:group-hover/button:bg-surface-control group-disabled/button:bg-secondary group-disabled/button:opacity-60 group-disabled/button:pointer-events-none",
7376
shortcut:
7477
"border-text-dimmed/40 text-text-dimmed group-hover/button:text-text-bright group-hover/button:border-text-dimmed",
7578
icon: "text-text-bright",

0 commit comments

Comments
 (0)