-
Notifications
You must be signed in to change notification settings - Fork 62
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
fix contrast in console ngql #771
Conversation
@johnny-smitherson Thank you for your contribution 🤗 |
changed font and colors |
font-family: Roboto-Regular, sans-serif; | ||
font-family: Consolas, "Courier New", monospace; | ||
font-weight: 500; | ||
font-size: 18px; | ||
color: #00bfa5; | ||
color: #111; |
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.
@@ -23,10 +23,10 @@ | |||
border-radius: 6px; | |||
padding: 11px 14px; | |||
cursor: pointer; | |||
font-family: Roboto-Regular, sans-serif; | |||
font-family: Roboto-mono, monospace; | |||
font-weight: 500; | |||
font-size: 18px; |
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.
adjusting the font-size to 16px
might look better ?
Thank you for your suggestions and insight into how this problem came to be. I still am not convinced by your Green-on-Green, Red-on-Red and "smaller font" design guidelines. I don't think developers that look at this exact field many hours a day for small bugs in the code prefer pretty-looking UI to easy-readable UI - maybe this one can be uglier than normal? After reading the pixel color values from the images above: It's my personal opinion that what we're ending up with isn't that much different from where we left. with black foreground: contrast 16 = "Super" Maybe I'm looking too much at this page? Maybe the solution would be to go further, e.g. Use same syntax highlighting from the code editor, on very slightly gray bg?. I will probably continue to use my personal fork that uses black text foreground instead. Please feel free to take over the PR or close it and hand it off to the product design. |
@johnny-smitherson As an individual, I agree with your viewpoint, and I also do believe that readability is more important than aesthetic design. Your PR will be handed over to the UI designer @yyh0808 of NebulaGraph for handling. Once again, thank you, Johnny, for your feedback. Both the PR and UI feedback are beneficial to us. |
hi @johnny-smitherson, thank you for your feedback. In popular component libraries, there are several color combinations for successful message displays:
https://chakra-ui.com/docs/components/alert#status https://element-plus.org/en-US/component/alert.html https://react-bootstrap.netlify.app/docs/components/alerts#examples https://tailwindui.com/components/application-ui/feedback/alerts#component-aa7cc38968c95d870db6ba62e76b8e0f Each combination has its own use scenarios, but in general, there may not be such strict rules. Studio 3.x version does not provide the function of customizing themes, but in the new version, we provide the ability for users to match colors according to their own preferences, please stay tuned. |
#770
What type of PR is this?
What problem(s) does this PR solve?
Issue(s) number:
#770
Description:
Very bad contrast on GQL query shown in studio console #770
How do you solve it?
color: #111;
Special notes for your reviewer, ex. impact of this fix, design document, etc: