Demos: keep sidebar open when focusing the demo content?
The sidebar currently collapses automatically whenever an element in the content area gets focused. This behavior feels rather disruptive for two reasons:
- it causes the example content to shift under the cursor at the first click
- 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
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.