Design comparison
SolutionDesign
Community feedback
- @Sylvester009Posted 7 months ago
Nice work here, to complete the whole setup for the desktop, try to make it possible for the share modal to open and close when the share button is clicked. Use can do by putting an if statement inside the function of the EventListener, something like this: desktopShareButton.addEventListener("click", () => { if (desktopShareModal.style.display === "flex") { desktopModalIsClose(); } else { desktopModalIsOpen(); } });
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