react-spectrum
react-spectrum copied to clipboard
Add support for fixed week display in Calendar
Closes https://github.com/adobe/react-spectrum/issues/4789, https://github.com/adobe/react-spectrum/issues/5840
I added props to the Calendar to enable the selection of a fixed 6-week view.
✅ Pull Request Checklist:
- [x] Included link to corresponding React Spectrum GitHub Issue.
- [x] Added/updated unit tests and storybook for this change (for new code or code which already has tests).
- [x] Filled out test instructions.
- [ ] Updated documentation (if it already exists for this component).
- [ ] Looked at the Accessibility Practices for this feature - Aria Practices
📝 Test Instructions:
- Visit the Date Picker example in your local Storybook.
- Go to the Controls tab and set
isFixedWeeks
to true. - Observe that the calendar now consistently displays 6 weeks.
- Confirm the 6-week display at the DateRangePicker example as well.