Modal
Search the component library

Modal

v1.0.0-beta.2
Download UI Kit v1.9.0

This component defines the standard visual style for the modal element.

Download UI Kit v1.9.0

Usage Guidelines

Every instance of a modal element should come from this component.

Features

  • Fully responsive, scales with browser width
  • Variable width can be set
  • Keyboard accessible
  • Tab scope constrained to modal
  • Focus memory on modal entry/exit

Standard

A modal window requires the user to interact with it before returning to the parent window or application.

The default modal style is comprised of a title area with close button, a content area, and a footer area with actionable Standard Buttons.

Alternate

The alternate modal is similar to the standard modal but has a title area with a Sea (#0C5D99) background color.

Image

The image modal is for image content. It replaces the title with zoom controls and has a Black (#000000) background color.

Responsive

The modal is fully responsive down to the Extra Small width of 320px.

The modal Large Title reduces in font size for Extra Small viewports.

Standard Modal

Alternate Modal

Image Modal

Long Titles

Here are examples of how the modal will handle long titles that must wrap.

Standard Modal

Standard Modal at Responsive Size

Redlines

Standard

Overlay
  • Background Color: rgba(0, 0, 0, 0.50)
Window
Title Area
Content Area
Footer Area

Alternate

Overlay
  • Background Color: rgba(0, 0, 0, 0.50)
Window
Title Area
Content Area
Footer Area

Image

Overlay
  • Background Color: rgba(0, 0, 0, 0.50)
Window
Title Area
Content Area
Footer Area

Changelog

1.0.0-beta.2

  • ADDED: Sketch file
  • ADDED: Long Titles
  • FIXED: Dependencies
  • FIXED: Redlines

1.0.0-beta.1

Initial version