
Solution retrospective
This task is clearly not a newbie. For it to work and look nice, you need advanced knowledge of CSS.
Had to work with indents in CSS so that the accordion could expand the number of blocks without rewriting styles.
What specific areas of your project would you like help with?- Due to the fact that a limited height of the text block is used, there are restrictions on the text size. If there is more text, then you need to manually change the height. If make an automatic height, then the opening and closing of the block will not be smooth.
Also, because of the height of the block, there is a twitch when collapsing.
- It was not possible for me to make it accessible from the keyboard without JS (
Please log in to post a comment
Log in with GitHubCommunity feedback
- P@YuliaLantzberg
Hi. Wow. It's looking like a perfect pixel. Great work. But unfortunately, it is not responsive. It's better to use rems instead of px. And if it's not enough than also media queries. About the second question. You can use tabindex="0" in your HTML code. It will not be the perfect handle of the keyboard. But still, it will enable you to navigate with a keyboard.
Join 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