Repository navigation
fix(studio): contrast ratio of JSON cell viewer colors in light mode - #40691
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
7 Skipped Deployments
|
|
Thanks for contributing to Supabase! ❤️ Our team will review your PR. A few tips for a smoother review process:
|
|
@marsou001 is attempting to deploy a commit to the Supabase Team on Vercel. A member of the Team first needs to authorize it. |
|
Hi @marsou001 💚 Looks good to me! cc @awaseem |
|
I thought about it too! Two reasons I didn't go with it:
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Central YAML (base), Repository UI (inherited), Organization UI (inherited) Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughSummary by CodeRabbit
WalkthroughThis pull request updates the visual styling of the DrilldownPane component in the JSON editor. The changes modify the color classes for key labels and value text to use different color palette options, including dark mode variants. Key labels now use sky and blue tones, non-string values use purple with green fallback, and string values use lime with yellow fallback. No functional or control flow changes are present. Assessment against linked issues
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 |
Braintrust eval report
|





JSON column viewer looks fine on dark mode, but barely visible on light mode, especially when the value is of string type.
There are no colors that can satisfy the 4.5:1 contrast ratio (minimum requirement for web and digital accessibility) on both white and black background, so I had to pick different classes for ight mode (dark mode is fine, I checked the colors against the dark background and the contrast is good).
Even though the new colors may not look that contrasting to each other, I prioritized accessibility, and made sure they all complied with the 4.5:1 contrast ratio.
Before:

After:

Fixes #40633