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
Popover: Base implementation using Floating-UI #3244
Conversation
✅ Deploy Preview for gestalt ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
'top': 'up', | ||
}; | ||
|
||
interface Props { |
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.
can we add a description of each prop here?
/**
* description
*/
scrollBoundary?: HTMLElement, | ||
}; | ||
|
||
export default function Contents({ |
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.
Can we change name here or in File to NewContents.
I know locations / paths are different but I want to make sure we dont exhange them by misatke. we cant rerename in the future
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.
What about Experimental prefix? Or we can rename old ones with prefix Legacy.
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'll leave it up to you. Legacy maybe makes more sense?
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.
Renamed old one with Legacy
prefix
Summary
Re-implemented core internal components of Popover using Floating-UI.
New implementation is not exposed. This is the first PR of gradual rehaul of Popover and Popover based components.
The changes include:
disablePortal
prop for InternalPopoverscrollBoundary
prop for InternalPopoverhideWhenReferenceHidden
prop for InternalPopover (open for shorter prop name suggestions)What changed?
Why?
Links
Checklist