Skip to content

Demos: keep sidebar open when focusing the demo content? #4

Description

@mootari

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:

<div class="wrapper-content" onclick={() => (show = false)} role="none">

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions