Design comparison
Solution retrospective
Any feedback to improve it's very appreciated, thank you!
Community feedback
- @PhoenixDev22Posted over 2 years ago
Hello @azenetesc ,
I have some suggestions regarding your solution:
-
Anything with a hover style in a design means it's interactive. you need to add an interactive element
<a>
around the image(image-equilibrium.jpg), Equilibrium #3429, Jules Wyvern`. -
the
icon-view
doesn't really need to be in the html, you could do it with css. If you want it to stay in html it needs to bearia-hidden:true
orrole presentation
with empty alt -
For any decorative images, each img tag should have empty
alt=""
( as you did )andaria-hidden="true"
attributes to make all web assistive technologies such as screen reader ignore those images in(icon-view,icon-ethereum, icon-clock
). -
The avatar' alt text shouldn't be
user profile image
, you can set it toJules Wyvern
. -
the link should be wrapping the original image and either have
Sr-only
text, anaria-label
oralt
text that says where that link takes you. -
you can use
border-top:
to theclass="card-footer""
, no need to use<hr class="body-line" />
.
CSS
-
width: 21.875rem;
an explicit width is not a good way . Remove the width from the main component and change it tomax width
instead. That will let it shrink a little when it needs to. -
In most cases, use unitless value of the line-height , this is the preferred way to set line-height and avoid unexpected results due to inheritance.Read more in MDN
Overall, your solution is good, Hopefully this feedback helps.
Marked as helpful0 -
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