Contained list
Color
Element | Property | Color token |
---|---|---|
Title: on page | text color | $text-primary |
background-color | $background | |
Title: disclosed | text color | $text-secondary |
background-color | $layer * | |
Item | text color | $text-primary |
background-color | transparent | |
Icon (optional) | svg | $icon-primary |
Row divider | border-bottom | $border-subtle * |
* Denotes a contextual color token that will change values based on the layer it is placed on.
![Enabled states for contained list variants Enabled states for contained list variants](/static/cb4681545f03e8ffe217ff11b77d55c7/3cbba/contained-list-style-1.png)
Example of enabled states for contained list variants.
Interactive states
Element | Property | Color token |
---|---|---|
Hover | background-color | $layer-hover * |
Focus | border | $focus |
Active | background-color | $layer-active * |
Disabled | text color | $text-disabled |
border | $border-disabled |
* Denotes a contextual color token that will change values based on the layer it is placed on.
![States for contained list item rows States for contained list item rows](/static/75e13d94e1efdc7bc07bce87f5f2c02a/3cbba/contained-list-style-2.png)
Example of states for contained list item rows.
![States for contained list inline actions States for contained list inline actions](/static/812ca5bd332a8eddebdf8da35f18159f/3cbba/contained-list-style-3.png)
Example of 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 |
---|---|---|---|
Title: on page | 14 / 0.875 | SemiBold / 600 | $heading-compact-01 |
Title: disclosed | 12 / 0.75 | Regular / 400 | $label-01 |
Item | 14 / 0.875 | Regular / 400 | $body-01 |
Structure
Element | Property | px / rem | Spacing token |
---|---|---|---|
Header: on page | height | 32 / 2 | $spacing-07 |
padding-left, padding-right | 16 / 1 | $spacing-05 | |
Header: disclosed | height | 48 / 3 | $spacing-09 |
padding-left, padding-right | 16 / 1 | $spacing-05 | |
Item | padding-left, padding-right | 16 / 1 | $spacing-05 |
Icon (optional) | height, width | 16 / 1 | — |
![Structure and spacing measurements for the on page list variant. Structure and spacing measurements for the on page list variant.](/static/8f3bcb2e022c80587ce84749a9dff451/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. Structure and spacing measurements for the disclosed list variant.](/static/2f80396a5373186237717a1da12bb479/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. Structure and spacing measurements for height and width of row content.](/static/cb0bde450efb557ad4391e65bb06c9c1/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. Structure and spacing measurements for padding and rule alignment.](/static/8d95f31d9f334a53ee34eece3ee4f1ef/3cbba/contained-list-style-7.png)
Structure and spacing measurements for padding and rule alignment. | px / rem
![Structure and spacing measurements for inline actions. Structure and spacing measurements for inline actions.](/static/929f53716471e6bf1da79b0b6b44a49a/3cbba/contained-list-style-8.png)
Structure and spacing measurements for inline actions. | px / rem