Skip to content
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

[Feature]: add option flipBoundaryPadding to react-positioning #33582

Open
1 task done
YuanboXue-Amber opened this issue Jan 8, 2025 · 0 comments
Open
1 task done

Comments

@YuanboXue-Amber
Copy link
Contributor

Area

React Components (@fluentui/react-components)

Describe the feature that you would like added

@fluentui/react-positioning has overflowBoundaryPadding, but it does not have flipBoundaryPadding.

In this example: https://stackblitz.com/edit/brzq2hfg?file=src%2Fexample.tsx, Popover has overflowBoundaryPadding: 10px, which is visible from the gap between the popover surface and the boundary on the left. But the popover surface's top edge does not have 10px gap from the boundary top.
If there's flipBoundaryPadding: 10px available, popover can be flipped to the bottom.
Image

Additional context

No response

Have you discussed this feature with our team

@ling1726

Validations

  • Check that there isn't already an issue that requests the same feature to avoid creating a duplicate.

Priority

Medium

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant