Overriding valid and invalid colors


Topic: Overriding valid and invalid colors

jsuares asked 2 years ago

How can we override the default valid/invalid colors using css?


kpienkowska staff answered 2 years ago

Yes, it can be done with CSS only.

I've prepared a snippet where I've changed styles for valid input: https://mdbootstrap.com/snippets/standard/kpienkowska/5089695#html-tab-view


jsuares answered 2 years ago

Thanks. Can the colors be disabled altogether? For example if I dont want the valid color to be wider and green at all?


kpienkowska staff answered 2 years ago

Every style you do not like can be overridden.

You can also customize how validation styles should look like. More about that in the documentation: https://mdbootstrap.com/docs/standard/forms/validation/#section-customizing


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: Free
  • Premium support: No
  • Technology: MDB Standard
  • MDB Version: MDB5 6.2.0
  • Device: desktop
  • Browser: chrome
  • OS: windows
  • Provided sample code: No
  • Provided link: No
Tags