Lists
On this page
A list shows a short set of people or things, one per row with a divider between them. Use it in cards for things like who's on shift or which tills are offline. For records people sort and search, use a table.


Figure 1: A list in a card, with an avatar, a name and a badge on each row
<ul class="ph-list">
<li>
<span class="ph-avatar ph-avatar--sm" aria-hidden="true">LF</span> Liam Fitzgerald
<span class="ph-spacer"></span>
<span class="ph-badge ph-badge--success">On shift</span>
</li>
<li>
<span class="ph-avatar ph-avatar--sm" aria-hidden="true">CN</span> Charlotte Nguyen
<span class="ph-spacer"></span>
<span class="ph-badge">From 12 pm</span>
</li>
</ul>
| Class | What it does |
|---|---|
.ph-list | Rows with 10px padding and a divider between them |
Use .ph-spacer to push a badge or button to the right end of a row.
Guidelines
- Keep lists short (about 10 rows). Link to a full page for more.
- If rows open something, make the name a link.
Related
- Tables
- Badges and status
- Drag and drop: lists people can reorder