Don't force open-in-full-screen when clicking in-page links in Preview/Canvas iframe #31536
MichaelAllenWarner
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is your feature request related to a problem? Please describe.
Clicking an in-page link (like
href="#"
orhref="#id"
) in the Preview/Canvas iframe results in navigating to the full-screen view of the story (in the same browser-tab). This is irritating for things like in-page navigation, back-to-top links, etc.Example from GitHub's Primer Storybook (click the link in the Preview/Canvas iframe): https://main--61a90feace7802003a4d9c45.chromatic.com/?path=/story/components-link--playground
Screen.Recording.2025-05-21.at.2.00.20.PM.mov
Describe the solution you'd like
I'd like this behavior not to occur, or perhaps to have an option to disable it. In-page nav links and back-to-top links should work in the Preview/Canvas iframe. Even "placeholder" links like
href="#"
shouldn't result in navigation, I'd say.(Of course, there may be some reason I'm not aware of for this behavior. But it's still annoying!)
Describe alternatives you've considered
No response
Are you able to assist to bring the feature to reality?
no
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions