Skip to content

fix the background color of the sidebar on 'medium' sized devices #11381

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

Merged
merged 4 commits into from
Sep 17, 2020
Merged

fix the background color of the sidebar on 'medium' sized devices #11381

merged 4 commits into from
Sep 17, 2020

Conversation

ingshtrom
Copy link
Contributor

Proposed changes

This fixes #11366 by adding the background color for the correct class name. It
seems that .sidebar-home used to be used a lot, but I couldn't find its usage
anywhere (when loading up the docs app), so I stuck to using .sidebar, which
seemed to work 😄

Unreleased project version (optional)

Related issues (optional)

Fixes #11366

@netlify
Copy link

netlify bot commented Sep 16, 2020

Deploy preview for docsdocker ready!

Built with commit 3961a25

https://deploy-preview-11381--docsdocker.netlify.app

@usha-mandya
Copy link
Member

Thanks @ingshtrom. Looks like the issue still exists

image

@ingshtrom
Copy link
Contributor Author

Oops! I fixed this, and then noticed that the header and side-bar changes color (black navbar, and darker sidebar) at the lowest resolutions. I fixed that, but maybe it was purposeful. Please let me know if it was and I can roll that back.

@usha-mandya
Copy link
Member

Thank you @ingshtrom. It looks fine to me. @StefanScherer Do you mind taking another look when you get a chance? Thanks.

@@ -117,16 +118,10 @@
.header {
height: 100px;
}
.nav-secondary-tabs,
.nav-secondary {
background-color: $black;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good so far, only thing I see is that on mobile the top bar is blue in light mode, but when I rotate my mobile to landscape it turns black.
Previously on mobile it always was black. I think this change here was for black -> blue.
I like the blue background better in light mode.
But we should also fix it for landscape mode further down line 234 ff.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, what I noticed was that on mobile the navbar (top bar) was black so I was trying to make it consistent with non-mobile views. I will change this for landscape mode as well. Nice find!

@ingshtrom
Copy link
Contributor Author

ingshtrom commented Sep 17, 2020

Oh, man.... I also noticed the search input changes based on the size of the screen... I'll fix that too.

https://drive.google.com/file/d/15je_vt8KA1k_2t2XUhhDtzCAHKdDXXNT/view?usp=sharing

@ingshtrom
Copy link
Contributor Author

PTAL. I think I got it this time. Mobile portrait and landscape are looking good. Just making a desktop screen smaller is looking good.

Copy link
Member

@StefanScherer StefanScherer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thanks Alex! Works fine now on mobile (portrait and landscape).

Copy link
Member

@usha-mandya usha-mandya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you Alex.

@usha-mandya usha-mandya merged commit de97cdc into docker:master Sep 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The formatting of the sidebar is unreadable on smaller screens
3 participants