hpc-social / blog

Community syndicated blog for hpc.social! 🗒️
https://hpc.social/blog
MIT License
5 stars 7 forks source link

Darkmodefix #11

Closed astoldbykelly closed 1 year ago

astoldbykelly commented 1 year ago

11

Changed:

<div class="mode" id="mode-switcher" onclick="toggleDarkMode();">

To: <div class="mode" id="mode-switcher" load="toggleDarkMode();">

Didn't come across the error of light mode being visible when auto toggled.

vsoch commented 1 year ago

Thanks for taking a look at this! I should have some time to review tomorrow. I think what we want is default to be dark mode, and to toggle to light mode (if desired).

vsoch commented 1 year ago

okay testing this! Here is what I see:

  1. the red doesn't appear to show up
  2. the dark mode is still default, but now the button to make light doesn't work

E.g., here is what I see:

image