Design comparison
Solution retrospective
Hi! I struggled a lot with the CSS of this project. A couple times I felt like giving up. The custom button was definitely a challenge in terms of styling and functionality. Also, initially github couldn't compile the site, so that's why the different commits. I am not sure what went wrong with that... Anyway, I'm proud that I have finished this project.
Any suggestions for improvement are appreciated!
Community feedback
- @Beats-AyushPosted over 2 years ago
Nice job completing this challenge. There are some places where you could improve -
- The hover state isn't persisting on the normal buttons.
- Also upon selecting the bill and tip percentage, the error for the number of people is automatically coming up even though I haven't touched the input yet.
You can have a look at my attempt to see what I meant.
Marked as helpful0 - @besttlookkPosted over 2 years ago
Hi, Below are some issue i like to point out:
- Consider your design for higher input and result. Your design breaks on getting large digits output. Limit to 2 decimel place only.
- On entering large number number overlap with icons.Add left padding to input field to avoid overlapping.
- For custom tip use input of type number with maximum percent limit of 100 or something.
- If you want you can remove arrow button on input using below code:
/* Chrome, Safari, Edge, Opera */ input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; } /* Firefox */ input[type="number"] { -moz-appearance: textfield; }
Tho arrow wont appear you can still increase or decrease the number using keyboad's arrow.
Good Luck #happyCoding
Marked as helpful0
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