Article Preview Component

Solution retrospective
Hey devs,
I have completed another challenge. The challenge was positioning the pop-up share links for desktop and mobile. Please comment if any improvement is possible.
Cheers!
Please log in to post a comment
Log in with GitHubCommunity feedback
- @vanzasetia
Hello there! 👋
For the share button, it should use
button
element instead of justi
element. Also, it's recommended to usespan
instead ofi
element and add visually hidden text to make it accessible by screen reader users.The pop-up contains social media links so wrap each social media icon with an anchor tag and add
aria-label
to the anchor tag to make it accessible for the screen reader users.I would recommend adding
max-width
to thecard
orcontainer
element to prevent it from becoming too large on the mobile layout.I hope this helps!
P.S. I recommend reading this article from Sara Soueidan about creating "Accessible Icon Buttons".
Marked as helpful - @Samadeen
Hey!! Cheers 🥂 on completing this challenge.. .
Here are my suggestions..
- You should use nest all of your
div
s in amain
tag to improve accessibility - Go down orderly when you are using the headings h1 down to h2 down to h3 and so on.
This should fix most of your accessibility issues
. Regardless you did amazing... hope you find this useful... Happy coding!!!
Marked as helpful - You should use nest all of your
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