Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Social Media Dashboard

jesbalchieroβ€’ 220

@jesbalchiero

Desktop design screenshot for the Social media dashboard with theme switcher coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


Guys, I need help to correctly solve this challenge, I managed to develop the dashboard and the themes correctly, but when I open the page (light-theme), I changed it to dark (dark-theme) and return to default mode (light-theme) the button's image disappears, but its functionality is there, add the grid box (it has a gray grid), etc, can anyone help me?

Community feedback

P
Alexβ€’ 1,990

@AlexKMarshall

Posted

I believe that the problem you are having with the button disappearing is a typo in your script.js file.

You are switching out the stylesheet files on toggle. You're changing it to light_theme.css in the script, but your actual file is light-theme.css

0

jesbalchieroβ€’ 220

@jesbalchiero

Posted

@AlexKMarshall OMG, I reviewed all the code and couldn't figure it out hahaha, thanks so much for the help!

0
jesbalchieroβ€’ 220

@jesbalchiero

Posted

Correction:

"...but its functionality is there, the grid box disappears (it has a gray grid), etc, can anyone help me?"

If you can help, thank you in advance!!

0

Please log in to post a comment

Log in with GitHub
Discord logo

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