Customize color of checkbox


Topic: Customize color of checkbox

itkaufmann pro premium priority asked 3 years ago

Is there a way to customize the color of a checkbox or is this feature planned?


Arkadiusz Idzikowski staff commented 3 years ago

@itkaufmann Currently it is not possible and we don't have plans to add such a feature. Could you provide more information about what exactly you need to customize? You should be able to easily change the colors by overriding CSS styles.


itkaufmann pro premium priority commented 3 years ago

@Arkadiusz Idzikowski I would need to change the background-color of a checked checkbox. However, I see no way to ovverride it just with css.


Arkadiusz Idzikowski staff answered 3 years ago

@itkaufmann

Here is an example:

.form-check-input[type='checkbox']:checked {
  background-color: red;
  border-color: red;
}

Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: Yes
  • Technology: MDB Angular
  • MDB Version: MDB5 1.3.0
  • Device: any
  • Browser: any
  • OS: any
  • Provided sample code: No
  • Provided link: No