Topic: Overriding valid and invalid colors

jsuares free asked 2 months ago

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

kpienkowska staff answered 2 months 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:

jsuares free answered 2 months 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 months ago

Yes, it can be done with CSS only.

I've prepared a snippet where I've changed styles for valid input:

Please insert min. 20 characters.


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



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