📄 Description
The Calendar component is incorrectly highlighting the "today" date.
From the attached screenshot, the selected/highlighted date is 5, but it is not actually today's date. The UI suggests that this is the current day (with a filled background and dot indicator), which is misleading.
This creates confusion for users, as the "today" state should always reflect the system date, not a previously selected or default value.
📸 Screenshot
The date 5 is highlighted as "today", which appears incorrect.
⚠️ Expected Behavior
-
The calendar should automatically detect and highlight the current system date.
-
"Today" should:
- Be visually distinct (as per design system)
- Update correctly on render
-
If a user selects another date, it should not override the "today" indicator styling.
❌ Actual Behavior
✅ To Do
📄 Description
The Calendar component is incorrectly highlighting the "today" date.
From the attached screenshot, the selected/highlighted date is 5, but it is not actually today's date. The UI suggests that this is the current day (with a filled background and dot indicator), which is misleading.
This creates confusion for users, as the "today" state should always reflect the system date, not a previously selected or default value.
📸 Screenshot
The calendar should automatically detect and highlight the current system date.
"Today" should:
If a user selects another date, it should not override the "today" indicator styling.
❌ Actual Behavior
A non-current date (e.g.,
5) is shown as "today"The highlight appears to be:
selectedinstead oftoday✅ To Do
Verify how "today" is calculated (e.g.,
new Date()vs controlled state)Ensure "today" and "selected" states are handled separately
Fix styling logic:
today→ indicator (dot / subtle highlight)selected→ active selection (background)Add test cases:
Check timezone edge cases (UTC vs local time)
Validate behavior across different months navigation