Design comparison
SolutionDesign
Solution retrospective
i have minor problem in changing button to minus and problem in responsive media query .so kindly sport the error and give me right way to approach it
Community feedback
- @FevenSeyfuPosted 11 months ago
Hi Harish, You have done an awesome job of matching to the design.I have recently completed the same challange and for your issue with changing the button image you can add an id to the image <img src="./assets/images/icon-plus.svg" alt="" class="Icon"> and access the image in JS
//find icon image with id let test = YourImage.src.includes('icon-plus.svg') // test if your path includes //setup onClick event YourImage.src = test ? ('yourpath/icon-minus.svg) : ('yourpath/icon-plus.svg)
I hope this helps
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