Design comparison
SolutionDesign
Solution retrospective
What are you most proud of, and what would you do differently next time?
Any feedback is welcome
Community feedback
- @0xabdulkhaliqPosted 7 months ago
Hello there 👋. Congratulations on successfully completing the challenge! 🎉
- I have a suggestion regarding your code that I believe will be of great interest to you.
MAKING BUTTONS ACCESSIBLE :
- The
icon
elements are needed to bebutton
elements, because using 'div` elements is not a good practice.
<div class="icon"> <img src="images/icon-document.svg" alt=""> </div>
- Even if we style them to look like button, we still not properly structured them in markup. So we need to tell the accessibility devices about what the button is used for using
aria-label
attribute.
- Here's an Example:
<button class="icon" aria-label="Click to Upload your files"> <img src="images/icon-upload.svg" alt=""> </button>
.
I hope you find this helpful 😄 Above all, the solution you submitted is great !
Happy coding!
Marked as helpful1
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