-
Notifications
You must be signed in to change notification settings - Fork 1.4k
fix: picker overflow bug #8419
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: picker overflow bug #8419
Conversation
|
Build successful! 🎉 |
|
Build successful! 🎉 |
LFDanLu
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems straight forward enough, verified the fix through your stories in the dscription
|
|
||
| export const AutocompleteSelect = () => ( | ||
| <Select style={{marginBottom: 40}}> | ||
| <Select style={{marginBottom: 40, position: 'relative'}}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume these story changes are just to make sure nothing else changes with the addition of the style? I'm not able to reproduce the original issue on main in these stories so I'm assuming these didn't match the required conditions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
correct, it's more about making sure that all instances and uses of it ourselves showcase the correct setup
# Conflicts: # packages/react-aria-components/docs/Select.mdx
|
Build successful! 🎉 |
Closes #8365
Same resolution and stance as docs: clear up relative position confusion
I built 2 stories based on the Issue codesandbox showing how to fix the issue in RAC and that it was fixed in S2.
RAC: https://reactspectrum.blob.core.windows.net/reactspectrum/9dad0030b38287caaec7c986ea03552af3898ca7/storybook/index.html?path=/story/react-aria-components--select-scroll-bug&providerSwitcher-express=false
S2: https://reactspectrum.blob.core.windows.net/reactspectrum/6643df292ebf895d83c05dbc3f9d5b20785c1654/storybook-s2/index.html?path=/story/picker--select-scroll-bug
There is still a little scrolling in the S2 story due to a margin, not due to the Picker. If the change hadn't been applied, then there would be a massive extra scrolling region.
I removed the stories for the PR because we have a number of these that we don't check again which end up as noise.
✅ Pull Request Checklist:
📝 Test Instructions:
🧢 Your Project: