Skip to content

Button-triggered menus should be dropdowns instead of contextmenus #488

In review

Description

@Bohreromir

Five menus opened by a button use the right click context menu:

  • Unpin in storage/sidebar/BucketList.svelte
  • the connection menu in storage/sidebar/StorageConnectionSidebar.svelte
  • the connection menu in routes/(app)/settings/connections/+page.svelte
  • hand-rolled menus with a click-catcher:
    • OperationsButton
    • the Create dropdown in StorageBreadcrumb

Move them to one shared ui/ dropdown based on DaisyUI's popover dropdown, anchored to the button. This also fixes the two connection menus opening at the top-left corner when activated with the keyboard, and removes the last click-catchers.

The Unpin menu has a single action and should therefore be a direct unpin button.

Metadata

Metadata

Assignees

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