Skip to content

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

Closed
wants to merge 1 commit into from

Conversation

JonasBa
Copy link
Member

@JonasBa JonasBa commented Apr 3, 2024

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 :)

CleanShot 2024-04-03 at 18 20 43@2x

Light mode before
CleanShot 2024-04-03 at 17 21 08@2x

Light mode after
CleanShot 2024-04-03 at 17 20 58@2x

Dark mode before
CleanShot 2024-04-03 at 17 21 21@2x

Dark mode after
CleanShot 2024-04-03 at 17 21 35@2x

**Web vitals** (click to expand)

before
CleanShot 2024-04-03 at 17 38 17@2x

after
CleanShot 2024-04-03 at 17 35 46@2x

**Metrics** (click to expand)

before
CleanShot 2024-04-03 at 17 40 31@2x

after
CleanShot 2024-04-03 at 17 41 35@2x

@JonasBa JonasBa requested a review from a team April 3, 2024 14:42
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Apr 3, 2024
@JonasBa JonasBa requested review from a team April 3, 2024 14:44
@nicholas-codecov
Copy link
Contributor

Love this change @JonasBa 🤩

@cleptric
Copy link
Member

cleptric commented Apr 3, 2024

Great stuff! Would be neat to maintain a slight gradient on the side bar, both for the light and dark theme.

@JonasBa JonasBa requested a review from vuluongj20 April 3, 2024 15:21
Copy link
Contributor

@anonrig anonrig left a 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]({
Copy link
Contributor

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

Suggested change
HookStore.get('sidebar:bottom-items')[0]({
HookStore.get('sidebar:bottom-items')?.at(0)?.({

@JonasBa JonasBa added the Do Not Merge Don't merge label Apr 3, 2024
@evanpurkhiser
Copy link
Member

I'm really into this look. Let's get this on @ckj and @vuluongj20's desks

@JonasBa
Copy link
Member Author

JonasBa commented Apr 3, 2024

I forgot to add it, but if this lands, we'd need to sync and ensure we update the screenshots in our docs.

@getsantry
Copy link
Contributor

getsantry bot commented Apr 25, 2024

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 WIP, I will leave it alone unless WIP is removed ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

@getsantry getsantry bot added the Stale label Apr 25, 2024
@getsantry getsantry bot closed this May 3, 2024
@github-actions github-actions bot locked and limited conversation to collaborators May 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Do Not Merge Don't merge Scope: Frontend Automatically applied to PRs that change frontend components Stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants