Design comparison
SolutionDesign
Solution retrospective
your comments here!!!
Community feedback
- @skyv26Posted almost 3 years ago
Hi! Dusviry, Very well done. It seems really nice but have some issue.
- Your arrow are not aligned with respective text and I have solution for it. Just change your code from
.accordion-button::after { background-image: url(images/icon-arrow-down.svg); background-size: 50%; } .accordion-button:not(.collapsed)::after { margin-right: 10px; background-image: url(images/icon-arrow-down.svg); background-size: 50%; transform: rotate(-180deg); }
To
.accordion-button::after { background-image: url(images/icon-arrow-down.svg); background-repeat: no-repeat; background-size: 50%; background-position: center; }
Little more work needed in your CSS as, you can also see that when arrow transform it angle then it slightly shifted to left hand side.
- In mobile response, your accordian is going outside the viewport . So it need to fix.
I hope you understand.
Good Luck
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