Controls are a subset of UI components that facilitate interaction within the application, i.e., Secondary Buttons, Button Groups and the Search Field. Control borders are used to outline these components and are not intended for use as separators.
Example
Search Field
Variables
On White
$mds-border-control-on-all-backgrounds
solid 1px #808080
On Light Gray
$mds-border-control-on-all-backgrounds
solid 1px #808080
On Dark Gray
$mds-border-control-on-all-backgrounds
solid 1px #808080
On Black
$mds-border-control-on-all-backgrounds
solid 1px #808080
Containers
Container borders create contrast between a layered component – such as a Popover or Dialog – and the background canvas on which it is layered.
Example
Dialog
You have uploaded an incorrect file type, please only upload .xls files.
Variables
Layered components – Dialog, Modal, Notifications, and Popover – only use containers with white backgrounds. Therefore, layered components only have one border variable that works across all backgrounds.
On White
$mds-border-container-on-all-backgrounds
solid 1px #e5e5e5
On Light Gray
$mds-border-container-on-all-backgrounds
solid 1px #e5e5e5
On Dark Gray
$mds-border-container-on-all-backgrounds
solid 1px #e5e5e5
On Black
$mds-border-container-on-all-backgrounds
solid 1px #e5e5e5
Headers
Header borders establish a clear hierarchy of content on a page by offering three variations: Primary, Secondary, and Tertiary. Use these variations to create a legible visual architecture which clearly communicates the organization of information.