Proposal for new UI patterns in the GDS Design System

By Mark Hurrell — based on prototyping and discussions between Mia Allers, Conor Delahunty, Stephen McCarthy, Chris Thomas, Michael Thomas, Sonia Turcotte & Jeremy Yun

  1. Floating boxes
  2. Modal dialogues
  3. Modal tooltips
  4. Shades

Floating boxes

Floating boxes are areas of the interface that remain fixed to the viewport while other areas of content can pass underneath them. They allow the user to work with two pages contexts simultaneously, and usually contain interactive filtering and sorting mechanisms that effect how the content in the other page context is visible.

A good floating box design

Floating box design proposal

The floating box should have a standard white background, so not to affect the colour-contrast of any component that might be placed inside it. Use a simple 5px wide, semi-opaque black bar overlaying the other areas of content to imply layering and depth, without veering too far into skeumorphism. There shouldn't be a shade over the other page content.

Some content in a floating box
Some example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example content
Some example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example content
Some example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example content
Some example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example content
Some example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example content
Some example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example content
Some example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example content
Some example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example content
Some example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example content
Some example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example content
Some example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example content
Some example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example content
Some example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example content
Some example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example content
Some example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example content
Some example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example content
Some example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example content
Some example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example content
Some example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example content
Some example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example content

Relevant styles

#floating-box {
  background: white;
  box-shadow: 5px 0 0 rgba(0,0,0,0.1);
}
      

Shades

Shades are a layer between a modal box and the page content beneath. They are used to increase focus on the modal by obscuring the visibility of the rest of the page content.

A good shade design

Shade design proposal

Full screen element behind the modal, with a semi-transparent white background to increase the contrast against the black modal element. Also utilise new CSS backdrop-filter styles to blur and reduce the contrast of the background.

Some example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example content
Some example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example content
Some example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example content
Some example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example content
Some example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example content
Some example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example content
Some example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example content
Some example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example content
Some example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example content
Some example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example content
Some example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example content
Some example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example content
Some example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example content
Some example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example content
Some example contentSome example contentSome example contentSome example contentSome example contentSome example contentSome example content

Relevant styles

#modal-shade {
  background: rgba(255,255,255,0.7);
  -webkit-backdrop-filter: blur(7px) contrast(90%);
  backdrop-filter: blur(6px) contrast(90%);
}