jeudi 30 mai 2019

Material-UI checkbox backrground color

I am using material ui checkbox, i wanted it to have its own background color over my div which has colored background. I have set the root to have a backgroundColor as white but the svgicon is a round shape which is not the look i intend to have. Can i shape the checkbox ?

Already have tried many things but not able to figure out how to change the icon

const styles = {
    root : {
        padding : '0px',
        display : 'inline-block',
        backgroundColor : 'white'
    },
    formLabelRoot : {
        margin : '0'
    }
}
.
.
.
render () {
        const { classes } = this.props
        return(
            <div style={customStyles.divStyle}>
                <div style={customStyles.div1}>
                    <FormControlLabel
                        classes=
                        control={
                            <Checkbox
                                classes=
                                color='primary'
                            />
                            }
                        label={''}
                    />
                </div>

The background white is making a spherical rounded checkbox apparent

Image of what is happening now




Aucun commentaire:

Enregistrer un commentaire