Added highlighting for events that fall under the today's day or month

This commit is contained in:
Franco Speziali 2022-06-14 18:43:41 +02:00
parent a936de4285
commit 3d19819fb2
2 changed files with 8 additions and 0 deletions

View File

@ -27,6 +27,10 @@ export default class GroupDayRenderer extends GroupRenderer {
html.textContent = dayInMonth.toString();
}
if (DayGrouping.isToday(eventDate)) {
html.className += " highlighted";
}
return html;
}
}

View File

@ -32,6 +32,10 @@ export default class GroupMonthRenderer extends GroupRenderer {
.slice(0, 3);
}
if (MonthGrouping.isThisMonth(eventDate)) {
html.className += " highlighted";
}
return html;
}
}