Design comparison
Solution retrospective
I welcome all feedback for this project. This was my first project using all three HTML, CSS and JS in one component. I also added some accessibility features but would like feedback on that as well.
Thanks!
Community feedback
- @denieldenPosted about 2 years ago
Hi Dan, congratulations on completing the challenge, great job! 😁
Some little tips for optimizing your code:
- add
main
tag and wrap the card for improve the Accessibility - instead of using
ul
for the number value useinput type="checkbox"
and styling it for better Accessibility - add
transition
on the element with hover effect - instead of using
px
use relative units of measurement likerem
-> read here - be careful to use
querySelector(".nameClass")
because it only selects the first match it finds... very useful with ids that are unique in the page but with classes you could get bugs due to oversights so try to be as precise as possible in selecting elements avoiding classes as a reference to unless you have to select them all, but in this case you have to usequerySelectorAll ()
- the function you wrote does not work... it is too complex and encounters bugs, testing with the checkboxes will be much easier: you just need to retrieve the
value
of the selected checkbox
Hope this help! Happy coding 😉
Marked as helpful2@dtp27Posted about 2 years ago@denielden Hi Deniel. I made several of the changes; would you mind taking a look at my code again? I used the radio input in order to simplify the selection process (since radio only allows one selection).
Thanks!!
1@denieldenPosted about 2 years ago@dtp27 Now is much better :) Good job!
Marked as helpful1 - add
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