Skip to content

Commit

Permalink
fix: keep toggle button color black for visibility in both themes
Browse files Browse the repository at this point in the history
  • Loading branch information
nr072 committed Sep 8, 2019
1 parent e611845 commit 3e1f99a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions static/script/theme-toggle.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ function toggleTheme(targetTheme) {
document.body.style.backgroundColor = bodyColor;
document.body.style.color = textColor;

// Keep toggle button color black for visibility, no matter in which theme.
toggleButton.style.color = "initial";

// Store theme name, so theme will be retained even after page change.
sessionStorage.setItem('theme', theme);

Expand Down

0 comments on commit 3e1f99a

Please sign in to comment.