BoldDesk®Customer service software offering ticketing, live chat, and omnichannel support, starting at $49/mo. for 10 agents. Try it for free.
As the title says, the modal menus for DatePickerComponent, DateTimePickerComponents and DropDownList remain light-themed even when .e-dark-mode is added.
To use Dark mode with Syncfusion components, you need to apply the respective theme stylesheet instead of using the "e-dark-mode" class. Please refer to the documentation linked below for more detailed information on how to implement themes:
This documentation will guide you through the steps to apply various themes, including the Dark mode, to Syncfusion components effectively.
Thank you for the reply, but I have read the documentation and applying the dark theme won't do.
I need the app (NextJS) to change appearance according to the user's device theme and applying "e-dark-mode" accordingly, is the easiest way to do that. If it's not to be used in such a manner, what is its purpose? And why do the rest of the components work fine with it?
Could you please share the following details to proceed further?
This will help us better understand and address the problem.
Sorry for taking this long to respond.
I am following the same logic from https://ej2.syncfusion.com/react/documentation/appearance/css-variables#switching-light-and-dark-mode-with-css-variables
I am adding and removing the class e-dark-mode. It works for all the components except for the calendar and time popups related to the datetime and datetimepicker components. They won't change their appearance when e-dark-mode has been added as a class.
We have validated the reported query on our end, but unfortunately, we were unable to reproduce the reported issue as per your scenario. We have also shared a sample and video illustration for your reference.
Sample: Xbnqqu (forked) - StackBlitz
In order to assist us in identifying the problem and provide a better solution, we kindly request that you provide additional details about the issue, as mentioned below:
Thank you for the reply. I see that you used the bootstrap theme. Could you please try with Material 3? That's the one I've been using.
The previously provided sample uses the Fluent 2 theme. Based on your last update, we have tried to replicate the reported scenario with the Material 3 theme. The dark mode is applied to the component and its popup as expected. Please find the sample and video demo for reference.
|
Sample: Xbnqqu (forked) - StackBlitz
As mentioned in our previous response, could you please share the following details to proceed further?
Sorry for the late reply again. Once I updated to the latest version from your example, it works just fine.
Thank you
Hi George,
Please get back to us for assistance in the future.
Regards,
Shereen