Design comparison
SolutionDesign
Solution retrospective
why my reset button cant be disabled?
Community feedback
- @turtlecrabPosted over 2 years ago
Hey, nice solution! Addressing your question - your reset button is in fact becomes disabled, but you don't have any styles for disabled state. Use
:disabled
pseudo class to style disabled elements. Something like this:.splitter__reset-btn:disabled { opacity: 0.5; cursor: default; }
Hope this helps.
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