Social Proof Section using Flexbox, CSS variables and REM units.
Design comparison
Solution retrospective
Open to feedback. One thing I struggle with is the colors of the not-so-accessible text content from the design. I am colorblind so that is a challenge. Anyone else struggling with this?
Community feedback
- P@tedikoPosted over 3 years ago
Hello, Eric Salvi! 👋
Happy to see you posting another solution! It responds well. Here's my small suggestions:
- Change the
alt
attributes for the.quote__card-author
avatars as they don't do any extra context for screen reader users. Changing toalt=""
will make screen readers skip those avatar images. - You repeat your HTML code with stars images which is unnecessary. Find the way to use only one star image for a
.stars
. You can do it easily by usingbackground-repeat
approach in your css. Your approach isn't wrong tho, you can keep it as it is tho.
Good luck with that, have fun coding! 💪
1@ericsalviPosted over 3 years ago@tediko Thank you for the suggestions.
I did set the alt tag to
alt=""
as you suggested. I actually contemplating doing this previously and thought maybe it might be good for accessibility but I can see it is not really an important image and not the focus of the content.As for the stars, I did implement originally using
space
forbackground-repeat
but I didn't like the way it looked as I wanted specific spacing between each start.Definitely worth noting for future designs.
0 - Change the
- P@palgrammingPosted over 3 years ago
it looks good until right below 375px it is like you added in an extra media query you do not need
1@ericsalviPosted over 3 years ago@palgramming Thank you. This was sort of intentional as there are no screens I know of that go that narrow. I could be wrong but you really have to go beyond any screen size to see it at that width.
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