Bump inactive chart toolbar contrast to match Line dropdown#2142
Bump inactive chart toolbar contrast to match Line dropdown#2142dcccrypto merged 1 commit intodcccrypto:mainfrom
Conversation
The Display dropdown rows, f(x) indicator labels, and timeframe buttons were using --text-dim at rest — a token reserved for placeholder-style metadata that doesn't clear WCAG AA on dark bg for body text. Inactive interactable controls should sit at --text-secondary instead, matching what ChartStyleMenu (Line) already uses for its non-selected rows. Hover affordance was also inconsistent: ChartStyleMenu rows brighten text AND add a --bg-surface row highlight on hover, but the other three controls only nudged the text from --text-dim to --text-secondary, which left the hover state still dimmer than the Line dropdown's resting state. All three now share one contrast scheme: rest → text-secondary hover → text + bg-surface row highlight ChartIndicatorRow uses a group / group-hover: pair on the wrapping div + label span so the row's hover state drives the label's brightening — cleaner than per-span hover handlers because the row also contains a swatch and per-config inputs when the indicator is enabled. Clear-all button bumped from --text-dim to --text-secondary too; the disabled:opacity-40 fallback still reads visually-disabled when no indicators are active.
|
@0x-SquidSol is attempting to deploy a commit to the Khubair Nasir's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThree trading chart UI components receive styling refinements: disabled text colors shift from dim to secondary variants, hover states gain background highlights for consistency, and group-hover contexts enable coordinated child element styling. ChangesTrading Chart Styling Consistency
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
The Display dropdown's off-toggle rows, the f(x) menu's off-indicator labels, and the timeframe bar's inactive buttons were using `--text-dim` at rest — a token meant for placeholder-style metadata. On the dark chart bg the text reads as nearly illegible, requiring users to bump display brightness to scan options. ChartStyleMenu (Line) already uses `--text-secondary` for its non-selected rows; this PR aligns the other three controls to the same scheme.
What changes
Implementation notes
Test plan
🤖 Generated with Claude Code
Summary by CodeRabbit