Unplanned
Last Updated: 19 Oct 2020 15:13 by ADMIN
John
Created on: 07 Oct 2020 15:20
Category: UI for ASP.NET MVC
Type: Feature Request
0
feature request: Expose css classes that give me access to theme colors.
I would like to be able to theme other, non-kendo controls to match kendo controls.  Some controls such as textarea i am able to do this with no problem with a k-textbox class, but i would also like to grandularly be able to set just the background to k-theme-background, foreground to k-theme-foreground, etc. This way if i use properties like this, they update with the kendo theme.
4 comments
ADMIN
Aleksandar
Posted on: 19 Oct 2020 15:13

Hello John,

Thank you for the additional details. Currently, I cannot provide any additional details on the Feature request, so I would suggest monitoring the item for future updates.

Regards,
Aleksandar
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/.

John
Posted on: 15 Oct 2020 21:12

ignore that typo.

 

John
Posted on: 15 Oct 2020 21:12
here's an actual use i have.  
input[type=checkbox].checkbox-slider:checked ~ .text:before {
    background-color: #bbdceb !important;
    border-color: #8bc4dd !important;
    color: black !important;
}

as you can see we are referencing theme colors exactly but i  have no way of reading them from the theme.  It would be nice to add a k-background, k-border class on the desired control.  In a few rare instances we have non-telerik controls or we have a background div that we've colored to highlight the contents.  Perhaps alternately there could be a way of reading theme colors in jquery?  In that case i could assign them were i want but i wouldn't be beholden to WHERE i put them on the control.

ADMIN
Aleksandar
Posted on: 14 Oct 2020 13:16

Hi John,

Thank you for logging this Feature Request. It is indeed a valid request and for some themes, such classes are available, however, not for all of the themes. There is some information on the CSS primitives used in the Kendo themes on the following page, though sparse, indeed:

https://docs.telerik.com/kendo-ui/styles-and-layout/appearance-styling#primitives

With that said, can you share some additional details on what options you would like to see available? This would help us understand better what the community needs and what customization options are desirable.

Regards,
Aleksandar
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/.