Patterns

Right panels

Right panels surface contextual detail without navigating away from the current page. They come in three widths — Standard Drawer (700px), Condensed Drawer (480px), and On-Page Supplemental (480px) — and can be combined for layered detail flows.

Stable

Panel types

TypeWidthWhen to use
Standard Drawer700pxPrimary detail views — claim detail, policy detail, add coverage workflow. Slides in from right, dims the main content.
Condensed Drawer480pxSecondary or stepped detail within a 700px drawer. Stacks on top of Standard Drawer.
On-Page Supplemental480pxAlways-visible right panel anchored beside the main content area, not overlaying it. Used for persistent context panes.

Standard drawer — 700px

The primary drawer slides in from the right edge of the viewport and overlays the main content. A dimmed backdrop prevents interaction with the page beneath. Keyboard focus is trapped inside until the panel is dismissed.

Add ACR to Policy

GL-2024-00441 · Liberty Mutual

Details
Coverage
Documents

ACR Information

ACR TypeAdditional Covered Risk
Effective Date01/01/2025
Limit$1,000,000
Deductible$10,000
width: 700px backdrop: rgba(5,10,30,.22) shadow: --shadow-300 animation: slide-in-right 200ms ease-decelerate

Condensed drawer — 480px

When a flow inside a Standard Drawer requires a secondary step (e.g., selecting a contact from within a claim detail panel), a 480px Condensed Drawer slides in, stacking on top of the 700px parent. The parent dims but remains visible.

Select Carrier Contact

Choose from existing contacts

JD
Jane Doe
Senior Underwriter · Liberty Mutual
MR
Michael Rodriguez
Claims Adjuster · Liberty Mutual
width: 480px stacks on top of 700px parent parent dims to opacity: 0.5

On-page supplemental panel

Unlike a drawer, the On-Page Supplemental panel does not overlay content. It anchors to the right side of the content area, reducing the main layout's width. Use for persistent context that should always be visible — e.g., a policy header, related contacts, or a document preview.

Claim CL-2024-01821

Main claim content — description, timeline, financials — fills this area. The panel on the right provides persistent context without stealing focus.

Policy Context

PolicyGL-2024-00441
CarrierLiberty Mutual
StatusIn Force
width: 480px (production) / 280px (compact demo) no overlay — shifts layout no backdrop

Drawer combination

In complex workflows, a 700px Standard Drawer and a 480px Condensed Drawer can be stacked simultaneously — for example, viewing claim detail in the 700px panel and adding a note in the 480px panel. Dismiss the 480px panel first (back/close), then the 700px panel.

Maximum depth: 2 layers.

Never stack more than two panels simultaneously. A third layer means the workflow should instead be a full-page navigation or a modal.

Universal panel components

ZoneCSS classContents
Header.ws-panel-headerTitle (h2), optional subtitle, close button (×). 16px 24px padding.
Tab bar.ws-tabs (optional)Placed directly below header when tabbed content is needed.
Body.ws-panel-bodyScrollable content area. 24px padding. Houses modules, forms, lists.
Footer.ws-panel-footerSticky to bottom. Contains primary + secondary actions. Right-aligned.

Usage guidance

Do
  • Trap keyboard focus inside the drawer when it is open.
  • Return focus to the trigger element when the panel is dismissed.
  • Use the 700px drawer for primary workflows; 480px for secondary/confirmatory steps.
  • Allow Escape key to close the top-most panel.
Don't
  • Don't stack more than 2 panels.
  • Don't open a drawer from within another drawer of the same width.
  • Don't use a drawer when a full-page view would serve better.
  • Don't put destructive actions in the footer without a confirmation step.