-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
ref(sidebar): change sidebar to light color in light mode #68177
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
Conversation
Love this change @JonasBa 🤩 |
Great stuff! Would be neat to maintain a slight gradient on the side bar, both for the light and dark theme. |
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.
❤️
)} | ||
<SidebarSection> | ||
{HookStore.get('sidebar:bottom-items').length > 0 && | ||
HookStore.get('sidebar:bottom-items')[0]({ |
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:
This line can be simplified and we dont need the if statement prior to this
HookStore.get('sidebar:bottom-items')[0]({ | |
HookStore.get('sidebar:bottom-items')?.at(0)?.({ |
I'm really into this look. Let's get this on @ckj and @vuluongj20's desks |
I forgot to add it, but if this lands, we'd need to sync and ensure we update the screenshots in our docs. |
This pull request has gone three weeks without activity. In another week, I will close it. But! If you comment or otherwise update it, I will reset the clock, and if you add the label "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀 |
I have punted the idea of removing the sidebar contrast on Slack a few times, but never got to opening the actual PR. I'm opening this PR so we can have an open discussion that wont ultimately get lost in slack (if not for anything else, it can serve as a future reference)
The PR changes the colors of our in-app sidebar in light mode, to no longer be the contrasting with the colors of the main page - note that this is already the case in dark mode (there is only a slight change in dark mode as we align to the theme background color used everywhere else)
The motivation is to take away the heaviness of the sidebar and have the user focus on what is in the middle of the screen. We have a lot of screens that are color heavy, especially when we are displaying a lot of charts - this would take some pressure off the reader and allow them to focus on the content.
A minor benefit here is also that our beta, alpha and whats new badges in our navigation and header cta buttons (see metrics example) stand out better as they have a higher contrast on this light colored background, bringing more attention and hopefully reducing some of the banner blindness we've been hearing about.
Feedback and opinions are very much appreciated. If you are lazy, feel free to just 👍 or 👎 the PR.
P.S. I've included a few examples of other pages from our demo app in the details below
P.P.S. I asked this question twitter a while back about what folks think of this and seems like @mitsuhiko had a hack to do this at some point :)
Light mode before

Light mode after

Dark mode before

Dark mode after

**Web vitals** (click to expand)
before

after

**Metrics** (click to expand)
before

after
