curriculum icon indicating copy to clipboard operation
curriculum copied to clipboard

Dark Mode Inconsistency

Open DevvObiero opened this issue 4 months ago • 3 comments

DARK MODE INCONSISTENCY

Clicking 'intro to digital' when dark mode is on removes it when it takes me to intro to digital page

What is wrong with this content? Incosisitency ,if i want dark mode it should be dark mode everywhere How could this be fixed? Use javascript and css Link to content https://itd.codeyourfuture.io/ Additional context

Who else might need to know about this?

DevvObiero avatar Oct 04 '25 23:10 DevvObiero

Hi! 👋 I would like to take this issue and work on fixing the dark mode inconsistency.

I'll start by reproducing the issue locally and then implement a solution using JavaScript and CSS to ensure dark mode persists across all pages.

Please let me know if there are any guidelines or specific requirements I should follow.

Thank you!

PaulBrytonRaj18 avatar Nov 07 '25 16:11 PaulBrytonRaj18

The problem here is that we host the different sites on different subdomains, so they don't share localStorage. If we were going to fix this, we could either:

  1. Re-host our sites to share a domain - this would be a significant rework
  2. Use cookies set on the parent domain (i.e. codeyourfuture.io rather than e.g. itp.codeyourfuture.io)

The cookie approach would probably work ok, but we should make sure to namespace cookie names so that they're unlikely to conflict with other subdomains, e.g. curriculum_darkmode or similar.

illicitonion avatar Nov 07 '25 16:11 illicitonion

interesting

DevvObiero avatar Nov 09 '25 06:11 DevvObiero