Design comparison
SolutionDesign
Solution retrospective
Here I opted to use JS to add and remove styling for the warnings instead of adding and removing a class name and having the styles specified in the css file. My question is: Is one of these methods preferable to the other? And if so, why? Thank you.
Community feedback
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