Design comparison
Solution retrospective
Hello,
All feedbacks are welcomed :D
Thank you,
Giorgian
Community feedback
- @vanzasetiaPosted over 1 year ago
Hi, Vatra Giorgian! 👋
I recommend using the native HTML elements to create the accordions,
<summary>
and<details>
elements.If you want to create custom accordions you need to tell the users the state of the accordion. You can do that by using
aria-expanded
attribute. Then, toggle the state through JavaScript.For the styling, you should only need one media query, either the
min-width
or themax-width
. If you are going for a mobile-first approach—which is the recommended way—you should use themin-width
media query to create the desktop layout. The mobile styling does not to be wrapped by amax-width
media query.Learn more — Responsive design ground rules | Polypane
I hope you find this useful. Happy coding! 😄
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