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.

A list of team members with avatars and badgesA list of team members with avatars and badges

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>
ClassWhat it does
.ph-listRows 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.