lundi 14 août 2023

How to change a style of disabled and checked checkbox?

I want to change my checked and disabled checkbox to green. I've tried changing background- color, color, accent-color and outline - only the outline changed, so I have the grey checkbox with the green outline. Do you have any idea how to change the checkbox to green or maybe get some ready img like sample checkbox ?

HTML:

                                <label>
                                <input type="checkbox"
                                       ng-model="t.isCorrected"
                                       disabled/>
                                
                            </label>

CSS:

input[type=checkbox][disabled]:checked {
outline:2px solid green;
accent-color: green !important;
background-color: #FA9E57 !important;
}



Aucun commentaire:

Enregistrer un commentaire