This is a migrated thread and some comments may be shown as answers.

Customize DateRangePicker

4 Answers 73 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Lara Marie
Top achievements
Rank 1
Lara Marie asked on 02 Oct 2019, 03:34 PM

I am trying to customize a few things in the Date Range Picker component namely the font, highlight colour, box shadow, etc. 

I was trying to do this by customizing a theme and following the steps at https://www.telerik.com/kendo-react-ui/components/styling/theme-builder/. I copied the downloaded all.css file into the project and imported it in the .js file which we are defining the DateRangePicker component. However, I don't seem to see any differences being applied to the styling (specifically, the colours remained the same). Moreover, if I manually edit the css file in VS are the changes applied to the styling?

4 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 03 Oct 2019, 06:34 AM

Hello, Lara,

Thank you for the details.

This sounds as if the file with the new styles is either not imported properly or there is another KendoReact style file imported after it.

Is it possible to send us the application where this is observed and we will be happy to inspect it further?

Regards,
Stefan
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Lara Marie
Top achievements
Rank 1
answered on 08 Oct 2019, 08:25 AM
I think it is working now. I'm importing the blue-pink-light.css file in the js file and styling seems to be affected. However, when I manually update the css file in VS the changes does not seem to be taken. Can you help me with this please?
0
Stefan
Telerik team
answered on 09 Oct 2019, 07:30 AM

Hello, Lara,

I`m glad to hear that there is progress on this.

As for the changes not being displayed, are these changes made to the blue-pink-light.css file or some other file?

In general, most tools like create-react-app or similar does not refresh the application after changes to the style file, and the browser window has to be refresh manually to see the changes. Please check if this is the case.

Regards,
Stefan
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Lara Marie
Top achievements
Rank 1
answered on 09 Oct 2019, 09:46 AM

Hi, 

Yes infact after manually restarting react, changes were updated.

Thanks for your help :)

Lara

Tags
General Discussions
Asked by
Lara Marie
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Lara Marie
Top achievements
Rank 1
Share this question
or