Components
Modal
Modals communicate information via a secondary window and allow the user to maintain the context of a particular task. Use Modals sparingly because they interrupt user workflow.
- Header
- Modal title
- Dismiss "X" icon
- Top border
- Gray divider
- Body
- Content title
- Content description (optional)
- Footer
- Gray divider
- Primary button
- Text button
.modal-title { font-family: Lato-Regular; font-size: 18px; color: #002D41; } .top-border { background-color: DEPENDS ON MODAL MESSAGE; border-radius: 4px 4px 0 0; } gray-divider { border: 2px solid #EEF1F6; } .modal-content-title { font-family: Lato-Regular; font-size: 24px; color: #002D41; } .modal-content-description { font-family: Lato-Regular; font-size: 14px; color: #3C4144; }
Types
Modals include feedback colors so users can further understand what their purpose is. The four types are:
- Informational (Blue)
- Success (Green)
- Warning (Yellow)
- Danger (Red)
Overview of CSS Classes
Selector
Summary
Parent Selector
.modal-title
.top-border
.gray-divider
.modal-content-title
.modal-content-description