-
Notifications
You must be signed in to change notification settings - Fork 36
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
be able to turn off popover auto placement #2658
Labels
react
@digdir/designsystemet-react
Comments
Barsnes
added a commit
that referenced
this issue
Oct 22, 2024
Fixes #2658 --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/digdir/designsystemet/issues/2658?shareId=XXXX-XXXX-XXXX-XXXX).
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently the popover tries to stay in the viewport, but still anchored to its reference element.
We should add a prop
autoPlacement
so consumers can turn this off.The bottom popovers here has
placement="bottom"
, but are moved up because the edge of the viewport would hide them.I believe this should be default behaviour, but this can be discussed
The text was updated successfully, but these errors were encountered: