List item
List items are a base for the lists in the selects or modals representing selectable parts.
- In progress
- Storybook (opens in a new tab)
npm install @sbks/ds-elements
Dimensions and spacing
Section titled “Dimensions and spacing”The highlight behind the row reaches past the text on both sides, into the gutter of the list.
| Part | Property | Token |
|---|---|---|
| Row | Minimum height | 36px |
| Row | Gap between content, actions and expand toggle | --space-2 |
| Highlight | Overhang on each side | calc(-1 * var(--space-2)) |
| Content | Padding | var(--space-3) 0 |
| Content | Gap between icon, label and status | --space-2 |
| Label | Vertical margin next to an avatar | calc(-1 * var(--space-2)) |
| Badge | Gap to the label | --space-2 |
| Badge | Vertical margin next to an avatar | --space-2 |
| Action | Padding | var(--space-1) 0 |
| Error message | Padding | var(--space-3) 0 |
Colors
Section titled “Colors”Selection, hover and focus paint over the highlight background.
| Part | Property | Token |
|---|---|---|
| Highlight | Background | transparent |