tip calculator app Sass vanilla JS

Solution retrospective
Any feedback much appreciated:)
Please log in to post a comment
Log in with GitHubCommunity feedback
- @ErayBarslan
Hey there, functionalities works as supposed to, design looks good and is responsive. Great work! My suggestions:
- Unless you really need to, it's better to not give
height
to container elements. Always try to let the child elements define the height of parent bymargin
,padding
etc. For screens more than960px
,max-width
of.container
is set to55vh
. When the height of screen gets smaller, this causes elements to overflow. - Because of defining container width by
vw
on several media queries, by the time screen gets bigger, size of container changes back and forth disproportionately. It would be better to keepvw
for one query and then set amax-width
withpx
orrem
once it reaches the desired design. - For calculation output you can use
.toFixed(x)
method to prevent high number of decimals overflowing. Amount of shown decimals will be limited whatever you give tox
value.
Other than these amazing work again and happy coding :)
Marked as helpful - Unless you really need to, it's better to not give
- @k-stopczynska
Hi,
Yeah, forgot to fix decimals and also about the error message.
Thanks for review, really appreciate it.
Happy coding!
Join 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