The Loader ThemeColor of secondary does not work for the material theme

1 Answer 140 Views
Loader
Noah
Top achievements
Rank 2
Iron
Iron
Iron
Noah asked on 25 Aug 2023, 09:00 PM
A loader component with a theme color of secondary is always gray regardless of the theme settings. You can see this on your demo page.

1 Answer, 1 is accepted

Sort by
0
Martin Bechev
Telerik team
answered on 30 Aug 2023, 07:59 AM

Hi Noah,

Thank you for the provided feedback.

Indeed you are right. All theme colors of the Loader are getting from the $kendo-theme-colors, except the secondary. Why? Because in many cases the secondary color isn't suitable for the scenarios where the Loader is used. 

When setting the themeColor="secondary" the color of the Loader is obtained from the $kendo-loader-secondary-bg color which is #656565.

https://github.com/telerik/kendo-themes/blob/develop/packages/default/scss/loader/_theme.scss#L5

That is the reason behind the different secondary color of the Loader. In case the color isn't suitable, the developer can change it with custom CSS, or use the aforementioned SCSS variables to overwrite the built-in colors.

I hope this helps.

Regards,
Martin
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources
Tags
Loader
Asked by
Noah
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Martin Bechev
Telerik team
Share this question
or