filter icon indicating copy to clipboard operation
filter copied to clipboard

Demos: keep sidebar open when focusing the demo content?

Open mootari opened this issue 4 months ago • 1 comments

The sidebar currently collapses automatically whenever an element in the content area gets focused. This behavior feels rather disruptive for two reasons:

  1. it causes the example content to shift under the cursor at the first click
  2. it makes browsing the examples more difficult because switching from one to the next requires reopening the sidebar

If I may, I'd recommend to not auto-close the sidebar, or to at least restrict the behavior to very narrow viewports.

Edit: The behavior appears to be controlled here: https://github.com/svar-widgets/filter/blob/55d7a1b6e7be5403baba07006f9e07bd63d92b3d/svelte/demos/common/Index.svelte#L188

mootari avatar Jul 23 '26 21:07 mootari

Hello @mootari ,

We’ve discussed this internally. For now, we feel that auto-closing the sidebar on content focus is a reasonable default, so we’re going to keep the current behaviour for now. That said, we’re definitely open to revisiting it if more people find it disruptive.

Appreciate you taking the time to open the issue.

Natasha-eng avatar Jul 30 '26 07:07 Natasha-eng