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

Storybook: Unable to scroll through docs for Modal component #621

Open
eslawski opened this issue Sep 27, 2023 · 1 comment
Open

Storybook: Unable to scroll through docs for Modal component #621

eslawski opened this issue Sep 27, 2023 · 1 comment

Comments

@eslawski
Copy link
Contributor

eslawski commented Sep 27, 2023

Expected behavior
I can view and scroll the docs for the Modal component in Storybook

Actual behavior
The docs for the Modal component load, but you are unable to scroll on that page. When you start on the Modal page, all other pages will also not be scrollable.

Steps to reproduce the issue

  1. Visit docs for Modal in Storybook
  2. Try to scroll around

Your environment

  • OS: macOS
  • Browser: Chrome, Firefox

Workarounds

  • You can press Escape when this happens to close any open modals
@daneah
Copy link
Member

daneah commented Sep 27, 2023

Likely because some of the stories load with the modal open, and when the modal is open it intercepts the scrolling. The modal is sort of "breaking out" of its intended area there. I think we used to load the stories through iframes but aren't now; maybe going back to that could fix this (but not sure that's a great route to go generally)

@daneah daneah changed the title Unable to scroll through docs for Modal component in Storybook Storybook: Unable to scroll through docs for Modal component Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants