Slide-outs and dialogs

The slide-out and the dialog.

Slide-out

From the right, over a dimmed page. For the details of one thing, and for editing it, without losing your place in the list. Its header wears the page background (--color-slide-header) and its body is the raised surface: white in Light, the dark surface in Dark. The phone menu, which slides in from the start edge, has the same design.

Behaviour

  • Focus moves to Close; Tab stays inside; Escape, Close or a press outside closes it; focus returns to what opened it.
  • The page behind does not scroll. Its address can include the open item, so Back closes it.
  • Editing: Save and Cancel in a footer that stays put; Remove on the far right, which asks first.

Sizes

  • 420px; .side-panel--wide 640px for logs or long forms; full width on phones.

Colour

  • Header: the page background, so it reads as part of the page. Body and footer: the raised surface. Dialogs keep the plain header, so a slide-out and a dialog are told apart at a glance.
  • High contrast keeps a solid line under the header.

Classes

  • .side-panel-layer, .side-panel-backdrop, .side-panel, .panel-header, .side-panel__body, .side-panel__foot, .side-panel__lead
  • Action list: .action-list, .action-list__item (a .btn with aria-describedby), .action-list__hint; files as .rows with a .tag.file-kind

Dialog

A modal, only for a decision or a short task that must finish before going on: confirming a removal, adding a list, a password check. Its header is plain (the panel header colour), unlike a slide-out's.

Remove qBittorrent?

Books already downloaded stay where they are. Downloads in progress stop being tracked.