Skip to content

Fix Metrics dashboard button label contrast#607

Merged
shocknet-justin merged 1 commit intomainfrom
cursor/fix-dashboard-button-contrast-62d1
Apr 18, 2026
Merged

Fix Metrics dashboard button label contrast#607
shocknet-justin merged 1 commit intomainfrom
cursor/fix-dashboard-button-contrast-62d1

Conversation

@shocknet-justin
Copy link
Copy Markdown
Member

Summary

The Metrics main view used IonButton with fill="clear" and color="light". In Ionic, that maps the button text color to the light palette (white in light mode, dark in dark mode), which clashed with the dark gradient-border card chrome—labels were effectively invisible in light theme.

Changes

  • Dropped color="light" on Manage / Swaps / Assets & Liabilities actions.
  • Added a small dashboard-action-button class that sets --color: var(--ion-text-color) so labels follow the active theme.
  • Swapped the hard-coded #16191c inner fill on .border for var(--ion-background-color) so the card matches light/dark backgrounds.

Verification

  • npx vite build succeeds.
Open in Web Open in Cursor 

Remove misleading color="light" from clear IonButtons so labels use
theme text color. Add dashboard-action-button class for contrast and
use ion background for gradient card fill so light/dark stay aligned.

Co-authored-by: Justin (shocknet) <shocknet-justin@users.noreply.github.com>
@shocknet-justin shocknet-justin marked this pull request as ready for review April 18, 2026 18:10
@shocknet-justin shocknet-justin merged commit d1b3405 into main Apr 18, 2026
2 checks passed
@shocknet-justin shocknet-justin deleted the cursor/fix-dashboard-button-contrast-62d1 branch April 18, 2026 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants