Design comparison
Solution retrospective
I am facing one problem in my solution which is to add a gradient border for the checkboxes when the user hovers in the item. One solution I found was to add a wrapper div with a gradient background, and then only display thin border area of that div, and cover everything else with a checkbox section.
Is there any straight forward way to solve this problem?
Community feedback
- @cyrilsourcePosted almost 4 years ago
Hello Przbadu,
It was so difficult but I have the solution: I made the challenge You have a circle with the gradient background with no border and :after you have a other circle in position absolute with a background like the main background and with a border gray With :hover you remove the border on circle:after and you see the border gradient
Maybe is not the best but a solution
You can have a look on my code here: https://github.com/cyrilsource/Frontend-Mentor-Todo-app and the preview site https://frontend-mentor-todo-app.vercel.app/
cheers,
1 - @ApplePieGiraffePosted almost 4 years ago
Hey, przbadu! π
Good work on this challenge (your solution looks good)βI think the next step you could take towards improving your solution would be to add some functionality to the todo list and actually make it a todo list app. π
As for your question about gradient borders, you can make gradient borders using the
border-image
property, but theborder-radius
property no longer works when you do that, so you may have to resort to a work-around as you did. πKeep coding (and happy coding, too)! π
1@przbaduPosted almost 4 years agoHey, ApplePieGiraffe!
Thank you.
That actually is already on my TODO list :D. I will build another app with this template and react and make it fully functional.
0@ApplePieGiraffePosted almost 4 years ago@przbadu
Just checked it out, again, and the functionality works well! π Nice job! π
Only thing I might suggest is that if you're up for it, implementing the drag-and-drop functionality would be a nice touch, which I think you could easily do with a JS library or something. π
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