Design comparison
SolutionDesign
Community feedback
- @mofadaPosted 3 months ago
I think you can use
radio group
replacebutton
to implement rating<!--rating--> <fieldset> <legend class="sr-only">Rate our service</legend> <label class="w-10 h-10 has-[:checked]:bg-white has-[:checked]:text-blue-900 hover:bg-orange hover:text-blue-900 md:w-[50px] md:h-[50px]"> <input type="radio" name="rating" value="1" class="appearance-none" required/> <span>1</span> </label> <label class="w-10 h-10 has-[:checked]:bg-white has-[:checked]:text-blue-900 hover:bg-orange hover:text-blue-900 md:w-[50px] md:h-[50px]"> <input type="radio" name="rating" value="2" class="appearance-none"/> <span>2</span> </label> ...... </fieldset>
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