
Design comparison
Solution retrospective
Even though it's a fairly simple feature, I think I'm most proud of the dark theme toggle.
What challenges did you encounter, and how did you overcome them?The main challenge I encountered, after deploying to Netlify, was that when I clicked on the theme toggle button suddenly the logo and toggle button (an SVG) were broken. I did some searching in Google, and eventually found that I was incorrectly handling these images in the JavaScript when the toggle button was clicked. The src URLs (at first hard coded) were not getting correctly updated in the build.
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Andrew Shea's solution.
Join our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord