Skip to content

Extract sidebar toggle button into its own reusable component #713

@acelaya

Description

@acelaya

The toggle button is currently displayed automatically at a given fixed position in mobile resolutions. That couples the whole layout with a specific size and makes assumptions about the existence of a header where content is placed in concrete locations.

Instead, it would be good to extract the button into its own component, and make it "notify" the sidebar to toggle via context.

Applications would have to wrap both <ShlinkWebComponent /> and <ToggleButtonWhatever /> under a common context for this to work, but they would have more control over where and when to display said button.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions