Skip to content
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: update switcher color according to sidebar #880

Merged
merged 1 commit into from
Aug 18, 2022

Conversation

12rambau
Copy link
Collaborator

@12rambau 12rambau commented Aug 17, 2022

Everything is in the title, look very carefully at the theme switcher in the dark theme when it's folded in the primary sidebar and you'll see a light grey border.

It's because the button has been customized to work on the header navbar that is "on-background" colored when the primary sidebar is simply using "background".

This trick ensures that we use the correct color when used in the sidebar.

For the poor soul that will review this PR, that's before:

Capture d’écran 2022-08-17 à 22 43 28

that's after:

Capture d’écran 2022-08-17 à 22 50 02

@12rambau 12rambau marked this pull request as ready for review August 17, 2022 20:50
@12rambau 12rambau merged commit 51219fe into pydata:main Aug 18, 2022
@12rambau 12rambau deleted the theme-switch branch August 18, 2022 06:01
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.

2 participants