@ApplePieGiraffe
Posted
Hi there, Yudi Yoshida! 👋
Nice work on this challenge! 🙌 Your solution looks good, responds well, and the accordion card functions nicely, too! 👏 It's great to hear that you learned and tried out new things for this challenge (I love the <details>
and <summary>
elements, too, since they things so much easier)! 😀
I think your JS looks fine—for larger projects, though, you might want to select and add event listeners to elements from the script.js
file (rather than in your HTML) so that you can keep all of your JS in one place. 🙂
Also, just letting you know that you don't necessarily have to make the other tabs close when one FAQ is opened—users might want to have multiple tabs opened at the same time or not want open tabs to unexpectedly close. Just a thought! 😉
Keep coding (and happy coding, too)! 😁
@aminbabu
Posted
Obviously, you done some great job to your html and js code. A creative approach.
@yudiyoshida
Posted
@ApplePieGiraffe Hello! How are you? Thank you so much for your comment!
Initially I was doing this challenge without JS, but I got some problems when all questions were opened at the same time (overflow problems), that's why I decided to close all tabs.
And of course, your project is amazing! That box animation.. OMG!
Keep coding!
@ApplePieGiraffe
Posted
@yudiyoshida
Haha, thanks! 😀
Just a tip—you could perhaps try allowing the height of the accordion to be dependent upon its content—that way, it should grow in size (not have overflow issues) when multiple tabs are opened. 😉
But, yes—keep coding, as well! 👍