Skip to content

Commit 2677c9b

Browse files
hfactor13tkoyama010Copilotlwasser
authored
Light mode button fix (#553)
* Fixed hover background color issue on Translation Guide for Python Packaging Guide * Added hoverlabel_font_color keyword argument and replaced hoverlabel with hoverlabel_bgcolor keyword argument * Update _ext/translation_graph.py Removed extra white space. Co-authored-by: Copilot <[email protected]> * Update _ext/translation_graph.py Used CSS variable instead of hardcoded "white" value. Co-authored-by: Copilot <[email protected]> * Update _ext/translation_graph.py * Changed --pyos-color-primary for light mode button * Replaced hardcoded font color with CSS variable Co-authored-by: Copilot <[email protected]> --------- Co-authored-by: Henry Cuzco <[email protected]> Co-authored-by: Tetsuo Koyama <[email protected]> Co-authored-by: Copilot <[email protected]> Co-authored-by: Leah Wasser <[email protected]>
1 parent ee6c8f1 commit 2677c9b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

_ext/translation_graph.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,8 @@ def run(self):
146146
fig.update_layout(
147147
paper_bgcolor="rgba(0,0,0,0)",
148148
plot_bgcolor="rgba(0,0,0,0)",
149+
hoverlabel_bgcolor="var(--bs-body-bg)",
150+
hoverlabel_font_color="var(--bs-body-color)",
149151
font_color="var(--bs-body-color)",
150152
margin=dict(l=40, r=40, t=40, b=40),
151153
xaxis_showgrid=False,

_static/pyos.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* PyOS-specific vars :) */
22
:root {
3-
--pyos-color-primary: #703c87;
3+
--pyos-color-primary: #cfafde;
44
--pyos-color-secondary: #8045e5;
55
--pyos-color-secondary-highlight: #591bc2;
66
--pyos-color-tertiary: #a66c98;

0 commit comments

Comments
 (0)