Design comparison
SolutionDesign
Solution retrospective
Anything I should fix or improve?
Community feedback
- @vanzasetiaPosted over 2 years ago
Hi there! 👋
Congratulations on finishing this challenge! 🎉
Here are some suggestions for improvements.
- I would recommend using the native HTML elements to create the accordion,
summary
anddetails
. By default, they are accessible to screenreaders and keyboard users. Currently, the accordions are not accessible by those tools, and also, the users should not have to click the image to expand the accordion. It is a small hit target which can be difficult for some people. - Remove the
max-width: 100vw
. It is recommended to treat thebody
element as the page which means that the width of thebody
element should not be limited. - I would recommend moving all the styling inside the
html
element tobody
element.html
element is dealing with the user's setting. So, it's best to not touch it whenever possible.
That's it! I hope you find this useful!
Marked as helpful1@godkingjayPosted over 2 years ago@vanzasetia Thank you for the advice, will take note of it.
0 - I would recommend using the native HTML elements to create the accordion,
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