pharos
pharos copied to clipboard
Storybook: Unable to scroll through docs for Modal component
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
- Visit docs for Modal in Storybook
- Try to scroll around
Your environment
- OS: macOS
- Browser: Chrome, Firefox
Workarounds
- You can press Escape when this happens to close any open modals
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)