New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update JsonTree light theme to have better contrast #6448
Update JsonTree light theme to have better contrast #6448
Conversation
@@ -102,7 +102,6 @@ const VariablesTree: React.FunctionComponent<{ | |||
theme={popoverTheme} | |||
postprocessValue={sortVarMapKeys} | |||
shouldExpandNodeInitially={expandCurrentVariableLevel(vars, likelyVariable)} | |||
invertTheme |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Inverting the theme calculated the colors so we lost control of them. I just set the background to white in the light theme.
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## main #6448 +/- ##
=======================================
Coverage 70.11% 70.12%
=======================================
Files 1169 1169
Lines 36512 36512
Branches 6877 6877
=======================================
+ Hits 25602 25605 +3
+ Misses 10910 10907 -3
☔ View full report in Codecov by Sentry. |
@@ -40,6 +40,9 @@ export const popoverTheme: Theme = { | |||
alignItems: "center", | |||
flexWrap: "wrap", | |||
}, | |||
nestedNodeItemString: { | |||
color: "#007124", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NIT: I would prefer to avoid this magic string.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed it to reference the light.ts
theme.
No loom links were found in the first post. Please add one there if you'd like to it to appear on Slack. Do not edit this comment manually. |
What does this PR do?
#007124
#B4183F
Demo
Checklist