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

Allow interacting with Storybook UI through the Joyride overlay #305

Conversation

ghengeveld
Copy link
Member

@ghengeveld ghengeveld commented May 13, 2024

The Joyride (guided tour) overlay normally prevents the user from interacting with the underlying page. However, it's possible for the "spotlight" area (which can be interacted with) to be positioned outside the viewport. When this happens it's impossible to continue or skip the tour since the entire screen is locked. By disabling user events on the overlay, it becomes possible to interact with the content below, including scrolling the sidebar. This is the simplest fix and while it's a little weird to be able to use Storybook with an overlay on top, I think that's a reasonable tradeoff.

Screen.Recording.2024-05-13.at.22.19.42.mov

It's a little weird that the overlay removes itself while scrolling, unfortunately I didn't find a way to prevent that.

@ghengeveld ghengeveld added skip-release Auto: Preserve the current version when merged patch Auto: Increment the patch version when merged labels May 14, 2024
@valentinpalkovic
Copy link
Contributor

valentinpalkovic commented May 14, 2024

Can you give some context in which particular scenarios the user must interact with the page? As I understood, it is just about scrolling to the spotlight area. Should we do this programmatically instead? I am concerned that allowing to navigate on the page by the user will introduce more uncommon behavior. I would really love to prevent this and figure out a way for spotlights to always be in the viewport.

@ghengeveld ghengeveld force-pushed the ghengeveld/232-when-there-are-multiple-connected-storybooks-the branch from f906629 to 6ba7f68 Compare May 15, 2024 09:20
@ghengeveld
Copy link
Member Author

Closing in favor of #307

@ghengeveld ghengeveld closed this May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Auto: Increment the patch version when merged skip-release Auto: Preserve the current version when merged
Projects
None yet
2 participants