htmlcsssasskendo-uikendo-timepicker

Change Kendo UI Timepicker Highlighted Text Color


How we can change the highlighted text color area in kendo ui time picker.

KENDO UI TIMEPICKER - https://www.telerik.com/kendo-angular-ui/components/dateinputs/timepicker/

As you see in this image, 10:30 AM is the highlighted area. I want to change the color of that time to red.

I did lots of research but didn't find any solution for this, i saw the html bellow somewhat it look like.

enter image description here

Found that if we change color of class <span class="k-time-highlight"></span> only background changes not text. enter image description here

This link is extracted code - https://silver-ranique-14.tiiny.site/


Solution

  • .k-time-highlight only references a span that sits on top of the items. The DOM that actually gets created when you open the TimePicker is (truncated for brevity):

    And each k-time-list-wrapper has the following:

    Unfortunately, I don't think you're able to style the <li class="k-item"> that appears under the <span class="k-time-highlight"> because there is no context that indicates when it is under the overlay.