how to change the default style of selected radio button
Hi guys, I wonder how can I change the default style of selected radio button
6 Replies
You need to first use
appearance:none;
then you can set new styling, then you can create a pseudo element for when the checkbox is checkedOh you said radio button, my bad, but it works exactly the same for radio buttons so it shouldn't be any problems for you
Here is with radio button
But if you just wanna change color for example, you can use the
accent-color
propertyIt works for me. Thanks
Interestingly enough, accent-color only works with certain colour values. Never cracked the code of why or how to report it
https://discord.com/channels/436251713830125568/1300108523245535273/1300302895643885638