mercredi 23 septembre 2020

Styling of checkbox input in React and Sass

There is a input like this:

<input
  type="checkbox"
  id="vehicle1"
  name="vehicle1"
  value="Bike"
  className="address-checkbox"
/>

but no matter what I write in .address-checkbox it doesn't take that styling.

Tried like:

.address-checkbox > input {
  color: red;
  border: 1.5px solid #e3e6eb;
}

or

.address-checkbox {
  color: red;
  border: 1.5px solid #e3e6eb;
}

or with !important, no change on the styling of it.

Is there a way to change its styling?




Aucun commentaire:

Enregistrer un commentaire