Design comparison
Solution retrospective
I'm not sure what's the flow of the UI. When should we calculate the tip?
Community feedback
- @AlexKMarshallPosted about 3 years ago
I would say it should be calculated any time the form is valid. The form is valid when you have a non-zero bill, a non-zero number of people, and either a preset tip selected, or a custom tip entered.
It should recalculate any time you change one of those values and the form is still valid.
If the form becomes invalid at any point, the outputs should be zero, and validation messages displayed on the incorrect fields
Marked as helpful1@rlabuonoraPosted about 3 years ago@AlexKMarshall Agree! I submitted just to check out other solutions and I think that's the best approach. I've seen some solutions that add a calculate button but I don't want to mess the design.
Thanks!
0@rlabuonoraPosted about 3 years ago@AlexKMarshall I redid the layout and implemented the app logic. Feel free to drop your comments, thanks!
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