Design comparison
Solution retrospective
Thanks for your comments, I solved it.
Community feedback
- Account deleted
The calculator has some problems with handling multiplication.
When I multiply it does not work, or it gives me the answer of the previous expression. I think you should have that checked.
And about theme toggle, how about you check out codepen.io I'm sure you might find something that works for you.
1@BushraDaPosted over 3 years ago@thulanigamtee thanks, codepen was useful, I solved it.
0 - @farildsenPosted over 3 years ago
Hi Bushra, Feel free to browse my repository to see how I chose to solve the tri-state toggle button. If you have any questions I'd be happy to try and answer them to the best of my ability.
Cheers
https://github.com/farildsen/farildsen.github.io
0 - @FarisPalayiPosted over 3 years ago
You can use CSS custom properties (a.k.a. CSS variables) and a little bit of JavaScript for toggling the theme. This article covers that briefly : Create A Dark/Light Mode Switch with CSS Variables. And you can use a slider or a radio button instead of a checkbox(like in the article) since there are 3 themes.
Oh, btw it's 'calc' not 'clac' 😅.
Happy coding!😊
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