Skip to content
UI & UX Design

Layering and Elevation: What Actually Works

How interfaces show depth with shadows, overlays and stacking order, so dialogs and menus appear above content.

MediaScaleUp Editorial Team 2 min read 13 views
Layering and Elevation: What Actually Works

What is at stake

Unplanned stacking creates menus behind headers and dialogs trapped under overlays.

The playbook

  1. Define elevation levels in the design system
  2. Use native dialog and popover features
  3. Keep z-index values in tokens
  4. Test overlays on mobile
  5. Check focus behavior for layered content

Where it goes wrong

Avoid:

  • Arbitrary high z-index values
  • Menus clipped by parent containers
  • Overlays that trap focus incorrectly
  • Shadows used inconsistently
What to do and what to avoid with layering and elevation, side by side
Good practice against the usual mistakes, from the sources listed below.

The numbers behind it

Published figures for Layering and Elevation
MeasureFigure
Elevationdesign systems define levels of depth with shadows
Stacking contextCSS z-index works within stacking contexts
Top layermodern browsers render dialogs and popovers in a top layer
Scrimsdimmed overlays separate dialogs from content

Getting outside help

When to hand it over: Bring in help when overlays and menus behave unpredictably.

Where this comes from

The figures and practices above come from the sources listed.

Working on something like this?

We take on UI & UX Design work for teams who want it done once, properly. Tell us what you are building and we will tell you honestly whether we are the right studio for it. Start a project.

Where to go next

Spotted something wrong? Report an error on this page. We correct on the page and say what changed.

All services

The work behind this article, and what it costs.

MediaScaleUp Editorial Team

Articles here are researched, written and checked by the MediaScaleUp studio team before they are published, and dated when they are reviewed.

Keep reading