How to custom font-size, color, style of validationMessage

1 Answer 814 Views
Validation
Baxing
Top achievements
Rank 1
Iron
Iron
Iron
Baxing asked on 29 Jul 2021, 03:10 PM

Hello,

Please guide me for change font-size , color or style of the invalid message (see at attahc image)

 

Thank you

1 Answer, 1 is accepted

Sort by
0
Hetali
Telerik team
answered on 30 Jul 2021, 08:55 PM

Hi Baxing,

In order to change the font-size, color and the style of the messages of the Kendo UI Validator, please use the following CSS:

.k-form-error, 
.k-form-field-error .k-label, 
.k-text-error {
  color: #2a75d1;
  font-size: 25px;
  font-style: normal;
}


You can also change the border color of the textbox using the following CSS:

.k-textbox.k-invalid, 
.k-textbox.k-state-invalid, 
.k-textbox.ng-invalid.ng-dirty, 
.k-textbox.ng-invalid.ng-touched {
  border-color: #2a75d1;
}


In this Dojo example, I have changed the styling of the Validator message along with the textbox border.

I hope this helps. Please let me know if I can further assist you.

Regards,
Hetali
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Baxing
Top achievements
Rank 1
Iron
Iron
Iron
commented on 31 Jul 2021, 07:26 AM

Thank you very much for your suggestion.
Tags
Validation
Asked by
Baxing
Top achievements
Rank 1
Iron
Iron
Iron
Answers by
Hetali
Telerik team
Share this question
or