Is there a way I can affect the text color for the checked state of the switch without hacking the theme. through htmlattributes or something like that. I want in in one place not globally.
1 Answer, 1 is accepted
0
Petar
Telerik team
answered on 24 Aug 2021, 06:52 AM
Hi David,
To achieve the targeted functionality, what you can do is to add a custom class to the Switch component which colors you want to change. This custom class can be added with HtmlAttributes as demonstrated below.
I hope the above details will help you implement what you need in your application.
Regards,
Petar
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/.