Topic: Overriding valid and invalid colors

jsuares free asked 1 year ago

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

Kamila Pieńkowska staff answered 1 year 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 1 year ago

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

Kamila Pieńkowska staff answered 1 year 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

  • ForumUser: 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