Design comparison
Solution retrospective
I think the hardest part was to find a way to add the toggle icon and make it rotate, but I little thinking when a long way. I new how to make the toggle of the text because I had used details/summary
before on README.md
. Is missing the two grayish lines couldn't get them so leaving it.
Community feedback
- @yallsobadPosted about 2 years ago
Hey!
I would remove the height on the container so when you expand all the questions the container height increases as needed.
You could also put cursor:pointer under the summary element so it works on the entire element instead of just the text.
1 - @dostonnabotovPosted about 2 years ago
Hi, there! That looks great!
For the icon, you have implemented the correct approach to rotate the icon. It happens in milliseconds. Just add a little transition to see it rotating.
1
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