'overflow: hidden' when using a Dialog breaks positioning of sticky elements #2226
Unanswered
christian-reichart
asked this question in
Help
Replies: 1 comment
-
sorry, i overlooked this discussion: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
On my page I work with position: sticky
Whenever a modal is opened and the body gets 'overflow: hidden' the sticky doesn't work anymore, leading to disappearing content, since it just get's reset to the normal flow.
Is there a way to prevent this?
A possible solution could be to disable this for headless UI and manage it myself. Something like 'overflow: clip' does basically the same thing without breaking sticky, I think it has moderate browser support: https://caniuse.com/?search=overflow%3A%20clip
Beta Was this translation helpful? Give feedback.
All reactions