Skip to content

Commit 3037a21

Browse files
samejrclaude
andcommitted
fix(webapp): dim the contrast handle and brighten it on hover
The handle sat at charcoal-200 on the dark themes, the brightest tone on the row. It rests a stop lower now and comes up to charcoal-200 on hover. Light reverses the direction - it rests white and dims to charcoal-200, since on a white page dimming is what reads as more prominent. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent e0b7a8a commit 3037a21

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@ const variants = {
1313
root: "h-4 grow",
1414
track: "h-1 bg-grid-bright",
1515
range: "bg-transparent",
16-
// The secondary-button hairline+shadow keeps the white dot visible on the
17-
// light track
16+
// The secondary-button hairline+shadow keeps the dot visible on the light
17+
// track. Hover moves the handle off its resting tone in whichever direction
18+
// reads as more prominent: brighter on the dark themes, dimmer on light.
1819
thumb:
19-
"h-4.5 w-4.5 border border-border-bright bg-white shadow-sm dark:border-transparent dark:bg-charcoal-200 dark:shadow-none",
20+
"h-4.5 w-4.5 border border-border-bright bg-white shadow-sm hover:bg-charcoal-200 dark:border-transparent dark:bg-charcoal-300 dark:shadow-none dark:hover:bg-charcoal-200",
2021
thumbSize: 18,
2122
// Track-coloured line, notched off the track by borders in the colour of
2223
// the page behind it (settings rows sit on background-dimmed).

0 commit comments

Comments
 (0)