Hi Néstor,
We have tested our component with NextJS to override the styles of Daterangepicker cssClass and was able to override the styles as expected. So please ensure if there is any spell error in the cssClass name used in your sample.
For your reference, we have attached the test sample in the below link.
Here, we have customized the color of the week end dates in DateRangePicker popup as given in the below code.
[INDEX.JS]
import { render } from 'react-dom';
import * as React from 'react';
import { DateRangePickerComponent } from '@syncfusion/ej2-react-calendars';
export class Default extends React.Component {
render() {
return (
<div className='control-pane'>
<div className='control-section'>
<div className='daterangepicker-control-section'>
<DateRangePickerComponent cssClass='customCSS' width="500px"></DateRangePickerComponent>
</div>
</div>
<link rel='nofollow' href="https://cdn.syncfusion.com/ej2/material.css" rel="stylesheet" />
<style jsx global>{`
.customCSS .e-calendar .e-content .e-weekend span {
color: red;
}
`}</style>
</div>
);
}
}
export default Default;
Note: Please download the sample from the above link and run “npm install” command to install the required packages and run “npm run dev” command to launch the application in browser.
To know more about cssClass, please refer the below documentation link.
If you are still facing issues in customizing Daterangepicker, please revert with issue reproducing sample that will help us to check and isolate the root cause of the issue and provide a prompt solution soon.
Regards,
Deepa L.