Order Summary Card with Vanilla TypeScript + WindiCSS + Vite
Design comparison
Solution retrospective
How's it going folks?
My questions are:
- Buttons should have some kind of description to announce what action they do?
- Do screenreaders announce the text content of the buttons and if so, can they be left as is?
Have a great day! Ty for viewing/replying.
Community feedback
- @isprutfromuaPosted over 2 years ago
Hi there. You did a good job π
keep improving your programming skills
your solution looks great, however, if you want to improve it, you can follow these steps:
π’ add some alternative text to images
π’ avoid using double images. It's better to use picture tag with sources
π’ there is no reason to positioning top image absolutely. You can simply use flexbox, or fix the height of container and set background-image. You card will be more responsive.
π’ about buttons: all is right, you can check it with browser accessibility tools. One thing that I'll be added it's more descriptive text for the change button (with sr-only class).
I hope my feedback will be helpful
Good luck and fun coding π€β¨οΈ
Marked as helpful1@OGShawnLeePosted over 2 years ago@isprutfromua Hey thank you very much for the feedback.
- You're right. I will add alt text to the icons.
- I actually implemented your advice in one of my recent challenges. Thank you very much. I will update this one with the picture tag.
- Do you mean the background image? I don't know, it was quite easy to get it positioned with absolute + inset 0. Or do you mean the image of the girl? It is not absolutely positioned, the container is a flex column.
- Yep. You are right. I will add a label with sr-only.
Thank you very much Ivan. Good luck to you as well!
0@isprutfromuaPosted over 2 years ago@OGShawnLee I am glad that my help was useful to you
Cheers, peace and happy coding!
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