Join the Webstudio community

Updated last week

Hi, how do you custom a checkbox?

At a glance

The community member is asking how to remove a blue check and customize a checkbox using CSS on a website. The answer provided is that the website is using a Radix checkbox, not the native HTML checkbox, in order to allow for customization.

Useful resources
  1. how do I remove this blue check?
  2. how do I get the class to get this customized in css?
on this site
you have button and then a checkbox? why is that?

https://webstudio.is/tools/headless-cms-finder?noCodeSetup=yes&customizableModels=yes&imagesInRichText=yes
Marked as solution
We use radix checkbox, not html native one to customize like that
View full solution
O
V
4 comments
We use radix checkbox, not html native one to customize like that
And technically, you play with the position static/relative to show the differents stages ?
Or is there another simplier turn around ? ^^
check out the radix checkbox we provide, if you want to know how it positions the elements - open the dev tools and check styles for each element, that's a generally great way to learn things you see on any website
well, yes ^^
but my question was more, how do you keep the style of the radio button once checked ^^
cause in the element, there is :
Plain Text
| label
|--radio group item
|    --radio group indicator
|--text


So, the text, i can transform it into an icone (like a smiley, in your doc page)
and apply some hover style
but, how can i keep this style once the radio group item is checked :/

For the moment, I played with position and the radio group indicator appear above the box where the user clicked, but is there a more elegant solution for you ? πŸ™‚
Add a reply
Sign up and join the conversation on Discord