Modals disable page functionality in order to highlight information or isolate a required action. Modals should be used sparingly, open only when initiated by the user, and should not pop up unexpectedly when the user is in the middle of a flow.
Exception: Exit intent or marketing offer modals that open automatically are acceptable when the user is idling on the page for an extended period of time.
If modal content exceeds the container max height on desktop or mobile web, we switch to a modal with scroll functionality. For scrolling modals, the header and footer + CTA stick to the top and bottom of the container, and the information in the center scrolls up and down.
Sticky Header
background-color: white #ffffff
line: 1px, grey-medium-light
Title
font-size: 20px
font-weight: bold
font-color: text-black #434343
padding-top: 16px
padding-left: 16px
X
Height: 16px
Width: 16px
Stroke: 2px
Color: text-black #434343
padding-top: 16px
padding-right: 16px
Sticky Footer
background-color: white #ffffff
line: 1px, grey-medium-light
Button
font-weight: book
font-size: 20px
font-color: white
padding: 16px
border-radius: 5px
color: blue-medium #0bb8e3
padding-left: 16px
padding-top: 16px
padding-bottom: 16px
On desktop, large modals have a max width of 568px and small modals are 368px wide. These widths align to our . On mobile web screens, modals should always be 100% of the screen width (375px for standard iphone sizes).