From ab6286db3633dab354bac22c6100900502b26269 Mon Sep 17 00:00:00 2001 From: Henry Cuzco <40706933+uiucmeche1317@users.noreply.github.com> Date: Sat, 12 Jul 2025 11:27:21 -0700 Subject: [PATCH 1/5] Fixed hover background color issue on Translation Guide for Python Packaging Guide --- _ext/translation_graph.py | 1 + 1 file changed, 1 insertion(+) diff --git a/_ext/translation_graph.py b/_ext/translation_graph.py index 2077faaf..50968131 100644 --- a/_ext/translation_graph.py +++ b/_ext/translation_graph.py @@ -146,6 +146,7 @@ def run(self): fig.update_layout( paper_bgcolor="rgba(0,0,0,0)", plot_bgcolor="rgba(0,0,0,0)", + hoverlabel=dict(bgcolor="white"), font_color="var(--bs-body-color)", margin=dict(l=40, r=40, t=40, b=40), xaxis_showgrid=False, From e0c61be5ce68e788fdce0b8e5008e403cdcfc271 Mon Sep 17 00:00:00 2001 From: Henry Cuzco <40706933+uiucmeche1317@users.noreply.github.com> Date: Sat, 12 Jul 2025 12:23:31 -0700 Subject: [PATCH 2/5] Added hoverlabel_font_color keyword argument and replaced hoverlabel with hoverlabel_bgcolor keyword argument --- _ext/translation_graph.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/_ext/translation_graph.py b/_ext/translation_graph.py index 50968131..0c56233b 100644 --- a/_ext/translation_graph.py +++ b/_ext/translation_graph.py @@ -146,7 +146,8 @@ def run(self): fig.update_layout( paper_bgcolor="rgba(0,0,0,0)", plot_bgcolor="rgba(0,0,0,0)", - hoverlabel=dict(bgcolor="white"), + hoverlabel_bgcolor="white", + hoverlabel_font_color = "black", font_color="var(--bs-body-color)", margin=dict(l=40, r=40, t=40, b=40), xaxis_showgrid=False, From e20f92cc7780c8f202c5ba1becbf0eb81dc9093c Mon Sep 17 00:00:00 2001 From: Henry Cuzco <40706933+hfactor13@users.noreply.github.com> Date: Sat, 12 Jul 2025 14:49:51 -0700 Subject: [PATCH 3/5] Update _ext/translation_graph.py Removed extra white space. Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- _ext/translation_graph.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_ext/translation_graph.py b/_ext/translation_graph.py index 0c56233b..24b8628c 100644 --- a/_ext/translation_graph.py +++ b/_ext/translation_graph.py @@ -147,7 +147,7 @@ def run(self): paper_bgcolor="rgba(0,0,0,0)", plot_bgcolor="rgba(0,0,0,0)", hoverlabel_bgcolor="white", - hoverlabel_font_color = "black", + hoverlabel_font_color="black", font_color="var(--bs-body-color)", margin=dict(l=40, r=40, t=40, b=40), xaxis_showgrid=False, From ef2a22c618b8fbfcaa3ed9eb575d28b32f6528f2 Mon Sep 17 00:00:00 2001 From: Henry Cuzco <40706933+hfactor13@users.noreply.github.com> Date: Sat, 12 Jul 2025 14:50:37 -0700 Subject: [PATCH 4/5] Update _ext/translation_graph.py Used CSS variable instead of hardcoded "white" value. Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- _ext/translation_graph.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_ext/translation_graph.py b/_ext/translation_graph.py index 24b8628c..ab859eeb 100644 --- a/_ext/translation_graph.py +++ b/_ext/translation_graph.py @@ -146,7 +146,7 @@ def run(self): fig.update_layout( paper_bgcolor="rgba(0,0,0,0)", plot_bgcolor="rgba(0,0,0,0)", - hoverlabel_bgcolor="white", + hoverlabel_bgcolor="var(--bs-body-bg)", hoverlabel_font_color="black", font_color="var(--bs-body-color)", margin=dict(l=40, r=40, t=40, b=40), From 4f81bfb75c1a3900dc85aa485656fcad9ef58f00 Mon Sep 17 00:00:00 2001 From: Leah Wasser Date: Sat, 12 Jul 2025 16:44:29 -0700 Subject: [PATCH 5/5] Update _ext/translation_graph.py --- _ext/translation_graph.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_ext/translation_graph.py b/_ext/translation_graph.py index ab859eeb..7d2be501 100644 --- a/_ext/translation_graph.py +++ b/_ext/translation_graph.py @@ -147,7 +147,7 @@ def run(self): paper_bgcolor="rgba(0,0,0,0)", plot_bgcolor="rgba(0,0,0,0)", hoverlabel_bgcolor="var(--bs-body-bg)", - hoverlabel_font_color="black", + hoverlabel_font_color="rgba(255, 255, 255, 1)", font_color="var(--bs-body-color)", margin=dict(l=40, r=40, t=40, b=40), xaxis_showgrid=False,