Design comparison
SolutionDesign
Solution retrospective
What are you most proud of, and what would you do differently next time?
how to simplify the toggle class
What challenges did you encounter, and how did you overcome them?::before does not work on input use div container to wrap input
What specific areas of your project would you like help with?how do I use validator to validate email
Community feedback
- @hamidriaz1998Posted 2 months ago
Looking good! Regarding class toggling the
toggle()
function has an optional second paramter that specifies the condition for toggling. For example,toggle("dark", 5 > 2);
This will toggle the class if the condition is true.0
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