Replies: 1 comment
-
|
Thanks @deandre! I agree with you that making the resize handle smaller would help. I think we could keep the existing hover detection on the entire length of the window to show the handle, but then process drag events only on that handle. WDYT @MichaelArestad? |
Beta Was this translation helpful? Give feedback.
0 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Is your feature request related to a problem? Please describe.
When the addon panel is collapsed, it can be reopened by dragging inward from the viewport edge. There's no visible handle at that edge, so the drag target is invisible until the cursor happens to land on it and changes shape. People who keep the panel closed grab it by accident when they reach for something near the window edge.
One user kept hitting this several times a day:
Reported on Storybook 10.3.5, though the behavior looks like it predates that version. The sidebar behaves the same way, and it gets worse when Storybook is embedded in another app: Storybook's edge resize handle sits right next to the host container's own resize handle, so trying to resize the outer preview grabs the Storybook sidebar instead.
Describe the solution you'd like
Give the collapsed state an explicit, visible affordance instead of relying on an invisible edge drag target. A small visible grabber shown when a panel or sidebar is collapsed would make it clear where to drag, and would stop the accidental grabs that happen when the drag target overlaps the window edge.
Describe alternatives you've considered
Are you able to assist to bring the feature to reality?
no
Additional context
The drag-to-reopen behavior appears intentional: you can drag a panel down to fully hide it, so dragging from the edge brings it back. The problem isn't the capability, it's that the collapsed state gives no visible cue for where that drag target is, and the target sits exactly where people aim for other things (the window edge, or an embedding app's resize handles).
Recent accessibility work (#33980, following #33979) made the resize handles keyboard-accessible and visible on focus. That helps keyboard users, but it doesn't add a persistent visible affordance for the collapsed / zero-width state, which is where the accidental mouse grabs happen.
Beta Was this translation helpful? Give feedback.
All reactions