react-spectrum
react-spectrum copied to clipboard
DateRangePicker | Wrap text of default error message in case of selection of invalid date.
Provide a general summary of the issue here
The default error message is increasing the width of the calendar on selection of invalid date range.
https://github.com/adobe/react-spectrum/assets/15903389/99529972-9a7b-4121-a656-1cae26b330bb
๐ค Expected Behavior?
The error message should wrap to avoid sudden increase in width on selection of invalid range.
๐ฏ Current Behavior
The error message is increasing the width of the calendar on selection of invalid date range. Codesandbox link for reference.
๐ Possible Solution
We add some max-width to the container.
๐ฆ Context
No response
๐ฅ๏ธ Steps to Reproduce
Open Codesandbox link
Version
3.33.1
What browsers are you seeing the problem on?
Chrome
If other, please specify.
No response
What operating system are you using?
Mac OS
๐งข Your Company/Team
No response
๐ท Tracking Issue
No response
Thanks for filing this, I think making the Dialog content container enforce its initial width/size itself to its content min width sounds like it work off the top of my head. Would you like to give it a shot?