On this page

Detail overlays

How wide a drawer or panel should be when people inspect a record without leaving the page.

When people open an order, a sync log or the settings of a connection, they usually want the list behind it to stay where it is. A detail overlay, a drawer or panel that opens over the page, lets them inspect the record and go straight back to where they were.

When to use one

Use a detail overlay for the details of a record, structured evidence such as a sync log, or settings that belong to an item on the page.

A short confirmation, such as “Delete this store?”, is a dialog, not a detail overlay. Keep it at its normal size, however wide the detail overlays in the product are.

Widths

Default. From 1024 px: half the window, and at least 900 px. On a 1440 px window it is 900 px.
Wide. From 1024 px: 70% of the window, 1008 px on a 1440 px window. For a long log or a wide table.
Mobile. Below 1024 px: the whole window. Each label sits above its value.
Width Token Size
Default layout.overlay.default From 1024 px: half the window, and at least 900 px
Wide layout.overlay.wide From 1024 px: 70% of the window
Mobile layout.overlay.mobile Below 1024 px: the whole window
  • Choose the wide width for the content, not for the product. A long log or a table with many columns may need it; most drawers do not.
  • Below 1024 px the overlay fills the window, so it never makes the page scroll sideways.
  • The important parts stay in view: the title, the close or back button, the main action and any error message. Long tables and code scroll inside their own area; text and form labels wrap.
  • Width is only part of the job. Focus moves into the overlay when it opens and back to what opened it when it closes, the overlay has a name for screen readers, and its action bar stays visible. See Keyboard and focus.

Labels and values

Details are often shown as a list of labels with their values beside them. On wide screens, give the label column at least layout.description.minimum. When the overlay is narrower than that, put each label above its value instead.

In code

Use the CSS variables --bh-layout-overlay-default, --bh-layout-overlay-wide and --bh-layout-overlay-mobile, or the values in tokens.light when a component expects a length. Never copy the numbers into your own files.

Page widths cap how wide content grows; they are not breakpoints. The window widths where layouts change are in Breakpoints. The header and side navigation sizes are in App frame, and the page widths in Page widths.