Contained list
The following page documents visual specifications such as color, typography, structure, and size.
Color
Element | Property | Color token |
---|---|---|
List title: on-page | text color |
|
background-color |
| |
List title: disclosed | text color |
|
background-color |
| |
List item | text color |
|
background-color | transparent | |
Icon (optional) | svg |
|
Row divider | border-bottom |
|
* Denotes a contextual color token that will change values based on the layer it is placed on.
![Enabled states for contained list variants](/static/990eabdad7dfc05fa95b5c10de90936c/3cbba/contained-list-style-1.png)
Example of enabled states for contained list variants.
Interactive states
Element | Property | Color token |
---|---|---|
Hover | background-color |
|
Focus | border |
|
Active | background-color |
|
Disabled | text color |
|
border |
|
* Denotes a contextual color token that will change values based on the layer it is placed on.
![Interactive states for contained list item rows](/static/ce204a017c04e01330fc9d8513809619/3cbba/contained-list-style-2.png)
Example of interactive states for contained list item rows.
![Interactive states for contained list inline actions](/static/1d27182df778de169193f1b94699beaa/3cbba/contained-list-style-3.png)
Example of interactive states for contained list inline actions.
Typography
All contained list text should be set in sentence case, with only the first word in a phrase and any proper nouns capitalized.
Element | Font-size (px/rem) | Font-weight | Type token |
---|---|---|---|
List title: on-page | 14 / 0.875 | SemiBold / 600 |
|
List title: disclosed | 12 / 0.75 | Regular / 400 |
|
List item | 14 / 0.875 | Regular / 400 |
|
Structure
Element | Property | px / rem | Spacing token |
---|---|---|---|
List header area: on-page | height | 32 / 2 |
|
padding-left, padding-right | 16 / 1 |
| |
List header area: disclosed | height | 48 / 3 |
|
padding-left, padding-right | 16 / 1 |
| |
List item | padding-left, padding-right | 16 / 1 |
|
Non-interactive icon (optional) | height, width | 16px | — |
padding left, padding-right | 16 / 1 |
| |
Inline action icon button (optional) | height, width | 16px | — |
padding left, padding-right | 16 / 1 |
| |
Search icon button (optional) | height, width | 16px | — |
padding left, padding-right | 16 / 1 |
|
![Structure and spacing measurements for the on-page list variant.](/static/1221ed7a390332128716e51716510403/3cbba/contained-list-style-4.png)
Structure and spacing measurements for the on-page list variant. | px / rem
![Structure and spacing measurements for the disclosed list variant.](/static/e478577c831351bf3a32edb567bda2cb/3cbba/contained-list-style-5.png)
Structure and spacing measurements for the disclosed list variant. | px / rem
![Structure and spacing measurements for height and width of row content.](/static/ee88e24e3a9ae9f92801ec1d5d6d8d08/3cbba/contained-list-style-6.png)
Structure and spacing measurements for height and width of row content. | px / rem
![Structure and spacing measurements for padding and rule alignment.](/static/bb12d9acf818388b4cb1f24b7cb6ccb5/3cbba/contained-list-style-7.png)
Structure and spacing measurements for padding and rule alignment. | px / rem
![Structure and spacing measurements for inline actions.](/static/624b83151c29ebcf75716ff27c736252/3cbba/contained-list-style-8.png)
Structure and spacing measurements for inline actions | px / rem
![Structure and spacing measurements for non-interactive icons.](/static/638c572f9f450f03929cb1ae5f854abe/3cbba/contained-list-non-interactive-icons-style.png)
Structure and spacing measurements for non-interactive icons | px / rem
![Structure and spacing measurements for search and filtering.](/static/1d36f625aeffd0f36e5983e947256aab/3cbba/contained-list-search-style.png)
Structure and spacing measurements for search and filtering | px / rem
Size
On-page list
Size | Element | Height px / rem |
---|---|---|
Small (sm) | Header and row | 32 / 2 |
Medium (md) | Header and row | 40 / 2.5 |
Large (lg) | Header and row | 48 / 3 |
Extra large (xl) | Header | 48 / 3 |
Row | 64 / 4 |
![Sizes for contained list on-page variant.](/static/bcde508c46c5d953083ac4663adce27a/3cbba/contained-list-style-9.png)
Sizes for contained list on-page variant | px / rem
Disclosed list
Size | Element | Height px / rem |
---|---|---|
Large (lg) | Header | 32 / 2 |
Row | 48 / 3 |
![Sizes for contained list disclosed variant.](/static/b6078f28130da72b887fefd2262190eb/3cbba/contained-list-style-10.png)
Sizes for contained list disclosed variant | px / rem
Feedback
Help us improve this component by providing feedback, asking questions, and leaving any other comments on GitHub.