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

be able to turn off popover auto placement #2658

Open
Barsnes opened this issue Oct 22, 2024 · 0 comments · May be fixed by #2659
Open

be able to turn off popover auto placement #2658

Barsnes opened this issue Oct 22, 2024 · 0 comments · May be fixed by #2659
Labels
react @digdir/designsystemet-react

Comments

@Barsnes
Copy link
Member

Barsnes commented Oct 22, 2024

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.

image
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

@Barsnes Barsnes added the react @digdir/designsystemet-react label Oct 22, 2024
Barsnes added a commit that referenced this issue Oct 22, 2024
@Barsnes Barsnes linked a pull request Oct 22, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
react @digdir/designsystemet-react
Projects
Status: 👀 Ready for review
Development

Successfully merging a pull request may close this issue.

1 participant