Submitted about 3 years ago
There are some flaws, but mostly its ok.Added localstorage as bonus.
@Blaumanis
Design comparison
SolutionDesign
Solution retrospective
Dark to light mode toggling works fine, except when i am in dark mode and trying to input some todo, its styling appears as from light mode. Any suggestions would be greate how to fix this bug. Thanks
Community feedback
- @Lisa-C-27Posted about 3 years ago
Hi Albert, I think the issue might be when you are adding a to-do item you don't check if dark-theme is active, and then if it is active add the dark-items class on the new to-do that is being created. Another alternative would be to not have the class dark-items at all and just utilise the overarching dark-theme class to add the styles to the required components instead.
Marked as helpful0
Please log in to post a comment
Log in with GitHubJoin 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