We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
html { scroll-behavior: smooth }
Super weird one, but like the title says! I can reproduce in Chrome and Safari; it works fine in Firefox.
The page should not be scrolled to the top when the dialog opens.
https://codesandbox.io/p/sandbox/competent-chandrasekhar-8wcv88
1.0.0-alpha.5
Chrome 132.0.6834.84, Safari 18.2
macOS
None
Thank you 🙏
The text was updated successfully, but these errors were encountered:
It seems the scroll lock needs to unset the scroll-behavior style inline.
scroll-behavior
This fixes it as a workaround:
html:not([data-base-ui-scroll-locked]) { scroll-behavior: smooth; }
Sorry, something went wrong.
atomiks
Successfully merging a pull request may close this issue.
Bug report
Current behavior
Super weird one, but like the title says! I can reproduce in Chrome and Safari; it works fine in Firefox.
Expected behavior
The page should not be scrolled to the top when the dialog opens.
Reproducible example
https://codesandbox.io/p/sandbox/competent-chandrasekhar-8wcv88
Base UI version
1.0.0-alpha.5
Which browser are you using?
Chrome 132.0.6834.84, Safari 18.2
Which OS are you using?
macOS
Which assistive tech are you using (if applicable)?
None
Additional context
Thank you 🙏
The text was updated successfully, but these errors were encountered: