Fylo Data Storage Component - Mobile-First / CSS Grid

Solution retrospective
- Feedback would be appreciated, I will mark it as helpful. 🙏
Please log in to post a comment
Log in with GitHubCommunity feedback
- @Ahmed-Elbald
Alright,
I just want you to know one thing: Before you try to implement the design, consider the markup. Before you write your HTML, think about what each element represents.
In my opinion, the whole design consists of two things: Information about my storage and some buttons to import and export this data. Thus you should consider the following when writing your markup:
-
In your
.controls-box
, you can't usediv
s where you must usebutton
s. Why? because they are controls, they have functionality:// THIS IS WRONG <div class="document"> <img src="images/icon-document.svg" alt="" aria-hidden="true"> </div> // DO THIS <button type="button"> <img src="images/icon-document.svg" alt="Save your data"> </button>
-
It would be great if you could present storage information using a description list (
dl
). I know It would be hard to match that with the design. But I would do that under any cost using the.visually-hidden
class and thearia-hidden
attribute.
Marked as helpful -
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