Submitted about 3 years ago
Article preview component, mobile-first, using flexbox
@jullierme-r
Design comparison
SolutionDesign
Solution retrospective
Any feedback and tips to improvement are gladly accept.
Community feedback
- @pikapikamartPosted about 3 years ago
Hey, awesome work on this one. Layout in desktop is really good as well as for the mobile layout. Great.
Some suggestions would be:
- I think the image could be an actual
img
element. Since the article itself talks about furniture, it would be great addition to add those and have maybe a descriptive "furniture"alt
value. - The
alt
of the person should use that person's name as thealt
value, likealt="michelle appleton"
. - The person's name should be a heading tag, since this is an article, a person's name adds very much to the content.
- Now, on the toggler, it should use
button
element, usingdiv
alone is not really accessible. Whenever we create an interactive element, our keyboard should also interact with it, right now, you can't use your tab key in the keyboard like it should do. Making it abutton
makes it accessible. - The
button
togller as well should havearia-expanded
attribute on it. This will be changed by javascript, eithertrue
orfalse
depending on whether it is toggled. - The social media dropdown order in html, it should be after the toggler. So that when it is accessible, when I pressed again my tag, I would be navigating the dropdown now, right now, I can't because the ordering is wrong.
- The social media should be wrapped inside an
a
tag since it will act as a link for the user. - Each social media link
a
tag should havearia-label
on them, example, thea
tag that will wrap the facebook, it should havearia-label="facebook"
. - The
img
of the social media should only use their name as thealt
value likealt="facebook"
. Avoid adding words that relates to "graphic" like "icon, logo, image".. as the value. Assistive tech will handle those for you.
Aside from those above, you did a great job on this.
Marked as helpful1@jullierme-rPosted about 3 years ago@pikamart thank you so much. I'll work on your advices and try to keep that in mind for the next time.
0 - I think the image could be an actual
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