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

Enable switching of dark and light theme image for Bonsai logo #101

Merged
merged 1 commit into from
Nov 8, 2024

Conversation

banchan86
Copy link
Contributor

Fixes #98

@glopesdev glopesdev self-requested a review November 8, 2024 12:51
@glopesdev glopesdev added the layout Improvement to the website layout label Nov 8, 2024
Copy link
Member

@glopesdev glopesdev left a comment

Choose a reason for hiding this comment

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

@banchan86 this looks great, the solution of using the logo id class in CSS is particularly neat. I couldn't find a reference to it anywhere other than this docfx discussion and subsequent internal links in comments.

Let us know if you have any better references for why this solution works, so we can keep track of it and change it in the future when browser support improves (EDIT: sorry I missed the link in the original issue, looks great).

P.S.: I guess for other package websites we don't need to worry about this, since we have been using regular text rather than logo-embedded lettering, which is great.

@glopesdev glopesdev merged commit 39e55b8 into bonsai-rx:main Nov 8, 2024
1 check passed
@banchan86 banchan86 deleted the bonsai-logo-bug branch December 20, 2024 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
layout Improvement to the website layout
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bonsai logo text dissappears sometimes in light mode
2 participants