pharos icon indicating copy to clipboard operation
pharos copied to clipboard

Storybook: Unable to scroll through docs for Modal component

Open eslawski opened this issue 1 year ago • 1 comments

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

eslawski avatar Sep 27 '23 14:09 eslawski

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 avatar Sep 27 '23 14:09 daneah