Open
Description
Describe the bug
Issue
Depending on the browser being used, either the calendar or calendar popover is being rendered incorrectly. This issue appears to be affecting chromium browsers only from my research.
The calendar appears to have more than extra padding, the back and forward button are to the right of the month, and overlap. Further more, coloring for date selection appears to be incorrect especially for dark mode which is mentioned in this issue.
Other Observations
- This only happening in "prod" for me, opening the calendar on localhost looks fine.
- Upon refreshing (crtl/cmd + r) the "correct" calendar layout flashes before "shifting" into the bugged version (chromium browsers)
- The calendar looks correct on the iOS chrome mobile app (I believe this is because iOS chrome uses WebKit)
- Issue is occurring on both MacOS and Windows
- My lead on the issue that is causing this is either Tailwind4 compatibility issues or react-day-picker compatibility issues.
Images
Images attached below of the shadcn homepage calendar:
Affected component/components
Calendar, Date Picker
How to reproduce
- Visit ui.shadcn.com on various browsers and observe the calendar being rendered differently depending on the browser.
- Chromium browsers seem to be having issues with the calendar
- Try refreshing the page (crtl/cmd +r) and notice that the correct version of the calendar flashes for a second
Codesandbox/StackBlitz link
No response
Logs
System Info
Machine:
MacOS Sequoia 15.3.2 (24D81)
Arc Browser:
Version 1.89.0 (60953)
Chrome:
Version 135.0.7049.85 (Official Build) (arm64)
Before submitting
- I've made research efforts and searched the documentation
- I've searched for existing issues