Submitted almost 3 years ago
Interactive comments section made using vanilla JS.
@sakshamian
Design comparison
SolutionDesign
Solution retrospective
Hello everyone, this is my submission for the challenge. Hope you like it. Any suggestions and advices are most welcome.
Community feedback
- @hyde-brendanPosted almost 3 years ago
Great work! Two minor comments from me:
- The upvote/downvotes are a little wonky:
- There's no visual indication whether you pressed + or –, and when you press one, the other only cancels out the upvote/downvote; you cannot convert an upvote into a downvote without refreshing the page.
- Having it so if you reclick the + or – undoes the upvote/downvote, and directly clicking the other jumps over the initial value (i.e. 11 -> 13 on amyrobson's comment) would make it more intuitive.
- The design has icons for replying, editing, and deleting comments your solution currently does not have.
Marked as helpful0@sakshamianPosted almost 3 years ago@hyde-brendan Thank you for your valuable suggestions. There was some issue with the code for the icons which has now been resolved, you can check it. Coming to the upvote/downvote functionality, I implemented it that way on purpose. User can either upvote or downvote once and his choice is locked. I will still try to improve the visuals and votes function.
0 - The upvote/downvotes are a little wonky:
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