I'm currently working with the react-big-calendar
library in order to develop a customized calendar. However, I've encountered an issue where the SCSS styling is not being applied correctly.
export const JobnsCalendar = () => (
<Calendar
className={styles.calendar}
localizer={localizer}
views={['month']}
style={{ height: '80vh' }}
formats={formats}
components={{
toolbar: Toolbar,
}}
/>
);
styles.module.scss
:
.calendar {
.rbc-time-header-gutter,
.rbc-time-content > .rbc-row > div:not(.rbc-time-gutter),
.rbc-header,
.rbc-month-view {
border-right: none !important;
}
.rbc-month-view .rbc-row:not(.rbc-header-row) > .rbc-day:nth-child(6) {
background-color: blue;
}
.rbc-month-view .rbc-row:not(.rbc-header-row) > .rbc-day:nth-child(7) {
background-color: red;
}
}