Skip to content

Light mode button fix #553

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

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

hfactor13
Copy link

I updated the CSS file so that the button is more readable. Here's the issue number for reference. #533

hfactor13 and others added 8 commits July 12, 2025 11:27
@tkoyama010 tkoyama010 requested a review from Copilot July 13, 2025 09:03
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the primary theme color for better readability in light mode and adjusts the hover label styling in the translation graph.

  • Lightens the --pyos-color-primary CSS variable for improved button contrast.
  • Sets hover label background to the page’s body background and fixes hover label font color.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
_static/pyos.css Updated --pyos-color-primary to a lighter shade
_ext/translation_graph.py Added hoverlabel_bgcolor and hoverlabel_font_color settings

@@ -146,6 +146,8 @@ def run(self):
fig.update_layout(
paper_bgcolor="rgba(0,0,0,0)",
plot_bgcolor="rgba(0,0,0,0)",
hoverlabel_bgcolor="var(--bs-body-bg)",
hoverlabel_font_color="rgba(255, 255, 255, 1)",
Copy link
Preview

Copilot AI Jul 13, 2025

Choose a reason for hiding this comment

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

Hardcoding the hover label font color to white can lead to poor contrast on a light background. Consider using the body text color variable (var(--bs-body-color)) or another dynamic value to ensure readability across themes.

Suggested change
hoverlabel_font_color="rgba(255, 255, 255, 1)",
hoverlabel_font_color="var(--bs-body-color)",

Copilot uses AI. Check for mistakes.

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.

3 participants