Design comparison
Solution retrospective
My biggest challenge was the image hover styles. I'm curious if there's a better way to do it than how I did it. At first, I thought I had a solution, but realized the View icon is full opacity despite the background being somewhat transparent. I'm always looking for more efficient ways of accomplishing things!
Community feedback
- @grace-snowPosted almost 3 years ago
Hello
Biggest feedback on this is to make sure you use the right html elements. It's essential that anything with a hover style in the design is an interactive element. And it is essential that interactive elements have
focus-visible
styles as well as hover styles. These need to be really clear and obvious as they are needed to help a keyboard user know where is focused on the page.Here are some notes made in browser:
.card-img-overlay { note: needs to be an anchor tag element; } h2 { note: needs anchor tag inside, hover goes on that, not on h2; } .nft-details .nft-amount { note: text should never be in divs or spans alone. Use a meaningful element; } .nft-details img { note: is this a meaningful image? If it is decorative alt value should be blank; } .divider { note: there is a html element for this called hr; } .nft-creator .creator-img { note: not an accurate description in this alt text; } .nft-creator .creator-name { note: again this is an anchor tag; } main { margin: 1rem; // stops component hitting screen edges } .nft-creator span { note: should be a meaningful element like paragraph. The anchor tag for the persons name would go in here too; }
0@skyebrownhPosted almost 3 years ago@grace-snow thanks for your feedback. I made some updates based on your suggestions. My only question is what qualifies as an "accurate description" for alt text? The
.nft-creator .creator-img
is an image of the NFT creator -- not sure how much more descriptive it can get.0@grace-snowPosted almost 3 years ago@skyebrownh it’s a person. Even their name could be description enough, that’s the usual practice for avatars, sometimes it includes their facial expression or that it’s a headshot / face
0
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