I'm trying to change the font color on the datepicker by using the kendo classes, but it's not working.
I'd like to be able to set the style on the datepicker by overriding the kendo classes.
Need to customize the style of the datepicker to match corporate application.
Package versions:
Browser:
System:
Hi @shanegela,
the DatePicker doesn't catch the font-color, because the Angular component encapsulates the CSS classes by default. This is controlled by the ViewEncapsulation enum. On the other hand, the styles are written in no encapsulation style, hence the rules don't apply to the Kendo components.
The easiest solution is to stop the encapsulation of the component using the . Check the updated Plunker demo:
http://plnkr.co/edit/zCDssUUVLx9qvB5ZGClo?p=preview
Perusing the Angular documentation will help to understand how to style Angular components easier:
https://angular.io/guide/component-styles
If you have further questions, please either open a Support ticket or post your question in Stackoverflow.
Most helpful comment
Hi @shanegela,
the DatePicker doesn't catch the font-color, because the Angular component encapsulates the CSS classes by default. This is controlled by the
ViewEncapsulationenum. On the other hand, the styles are written inno encapsulationstyle, hence the rules don't apply to the Kendo components.The easiest solution is to stop the encapsulation of the component using the . Check the updated Plunker demo:
http://plnkr.co/edit/zCDssUUVLx9qvB5ZGClo?p=preview
Perusing the Angular documentation will help to understand how to style Angular components easier:
https://angular.io/guide/component-styles
If you have further questions, please either open a Support ticket or post your question in Stackoverflow.