-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Floating UI: Add detectOverflow
configurable collision boundary
#16879
Comments
detectOverflow
configurable collision boundary
Thank you for submitting a feature request. Your proposal is open and will soon be triaged by the Carbon team. |
@tay1orjones the issue is in menuButton as well most probably with comboButtons too Screen.Recording.2024-07-30.at.4.30.57.PM.movHere is the stackblitz also. |
Hi @tay1orjones , Just realised, do we need to add |
The first phase of this will be delivered through: and then this followup to fully close this issue: |
In certain situations consumers may need to customize the boundary/element used to detect collisions. One example of this might be the modal - components like Popover may need to reflow based on the bounds of the modal content container, and not the viewport.
To this we can implement the detectOverflow as a middleware and add props for consumers to pass in their own element and/or padding.
This will need to be done for every component that supports floating ui autoAlign:
Tasks
The text was updated successfully, but these errors were encountered: