I am proud of because I feel comfortable when working with javascript to manipulate the DOM object to change icons, display answer of the faq questions
What challenges did you encounter, and how did you overcome them?My challenges
-
I could toggle the plus icon to minus but the background color of the plus was not black as the design goal is. I solved it by changing the path of image in javascript to absolute. However, I still don't understand why but the scenario after that was good.
-
My second challenge was the height of the card was being overflowed by the content after toggle the question. It came outside the card. Therefore, I did search stackoverflow and the solution is to set the height to "auto". Pretty simple!