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

Scroll Issues in Docs (overflow-anchor) #1081

Open
1 task done
yaralahruthik opened this issue Feb 10, 2024 · 0 comments
Open
1 task done

Scroll Issues in Docs (overflow-anchor) #1081

yaralahruthik opened this issue Feb 10, 2024 · 0 comments
Labels
bug Something isn't working triage New issues that needs consideration

Comments

@yaralahruthik
Copy link

Bug report

Packages affected

  • sandpack docs

Description of the problem

I am building an interactive course where I noticed a particular issue with scroll. Basically, if there is scroll inside the sandpack and also the browser has a scroll.

Note: It only happens with Nextra (the docs use it) and chromium based browsers.

The attached jam link will help better understand the problem.

The fix is to use overflow-anchor: none on the closest parent! (But not sure of any regressions it would cause)

What steps can we take to reproduce the problem?

https://jam.dev/c/0a712253-3b4e-48d7-b702-448b70abcf0f

Your Environment

Software Name/Version
Sandpack-react version ^2.12.0
Browser Chromium
Operating System MacOS 14.2.1 (23C71)
@yaralahruthik yaralahruthik added bug Something isn't working triage New issues that needs consideration labels Feb 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage New issues that needs consideration
Projects
None yet
Development

No branches or pull requests

1 participant