# List group and description list in CSS

> iVOLT list: framed list groups with media, meta and end slots, navigation lists with aria-current, and a description list that adapts to its container.

Source: https://ivolt.intervolutions.com/components/list · iVOLT 1.1.2 · English

Two content lists that every product screen ends up needing. `iv-list` is a list group: rows in one framed surface, separated by hairlines, each with room for an icon, a title, a line of detail and something at the end. `iv-dl` is a description list of term and value pairs that stacks on narrow containers and sits side by side once its container is 32rem wide.

**CSS:** `css/components/list.css` (in `ivolt.css`). **JS:** none. New in 1.1.

Couldn't load the demo. [Open alone](https://ivolt.intervolutions.com/stage/list/basic.html?id=fx-list-basic)

```html
<div class="iv-grid iv-u-gap-6 iv-u-grid-cols-1 iv-u-lg-grid-cols-2">
  <ul class="iv-list iv-list--nav" aria-label="Settings">
    <li class="iv-list__item">
      <a class="iv-list__action" href="#list-note" aria-current="page">
        <span class="iv-list__media" aria-hidden="true"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="8" r="4"/><path d="M4 21a8 8 0 0 1 16 0"/></svg></span>
        <span class="iv-list__body"><span class="iv-list__title">Profile</span><span class="iv-list__meta">Name, photo and language</span></span>
      </a>
    </li>
    <li class="iv-list__item">
      <a class="iv-list__action" href="#list-note">
        <span class="iv-list__media" aria-hidden="true"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="4" y="10" width="16" height="11" rx="2"/><path d="M8 10V7a4 4 0 0 1 8 0v3"/></svg></span>
        <span class="iv-list__body"><span class="iv-list__title">Security</span><span class="iv-list__meta">Passkeys and sessions</span></span>
        <span class="iv-list__end"><span class="iv-badge iv-badge--warning">1 to review</span></span>
      </a>
    </li>
    <li class="iv-list__item">
      <a class="iv-list__action" href="#list-note">
        <span class="iv-list__media" aria-hidden="true"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="3" y="5" width="18" height="14" rx="2"/><path d="M3 10h18"/></svg></span>
        <span class="iv-list__body"><span class="iv-list__title">Billing</span><span class="iv-list__meta">Team plan, renews on 1 March</span></span>
      </a>
    </li>
  </ul>

  <ul class="iv-list" aria-label="Recent deploys (sample data)">
    <li class="iv-list__item"><span class="iv-list__body"><span class="iv-list__title">main · 4f2c9a1</span><span class="iv-list__meta">Production · 2 min ago</span></span><span class="iv-list__end"><span class="iv-badge iv-badge--success">Live</span></span></li>
    <li class="iv-list__item"><span class="iv-list__body"><span class="iv-list__title">feat/spark · 9b03e7d</span><span class="iv-list__meta">Preview · 1 h ago</span></span><span class="iv-list__end">1 m 12 s</span></li>
    <li class="iv-list__item"><span class="iv-list__body"><span class="iv-list__title">fix/tooltip · 31aa0c4</span><span class="iv-list__meta">Preview · yesterday</span></span><span class="iv-list__end"><span class="iv-badge iv-badge--danger">Failed</span></span></li>
  </ul>

  <dl class="iv-dl">
    <div class="iv-dl__row"><dt>Plan</dt><dd>Team, 12 seats</dd></div>
    <div class="iv-dl__row"><dt>Region</dt><dd>Frankfurt (eu-central)</dd></div>
    <div class="iv-dl__row"><dt>Domain</dt><dd><code>studio.example.com</code></dd></div>
    <div class="iv-dl__row"><dt>Created</dt><dd>12 March 2026</dd></div>
  </dl>

  <p class="iv-u-m-0 iv-u-text-sm iv-u-text-muted" id="list-note">Sample data: every row leads back to this note. The description list puts terms and values side by side once its container is 32rem wide.</p>
</div>
```

## When to use which

- **A list group** for a short collection the reader scans: settings sections, recent deploys, team members, notifications. If the rows have more than three or four columns of data that need sorting, that is a [table](https://ivolt.intervolutions.com/components/table) or a [data table](https://ivolt.intervolutions.com/components/datatable).
- **A navigation list** (`iv-list--nav`) for a set of links where one is the current page — the side menu of a settings area. Mark the current row with `aria-current="page"`; the style follows it.
- **A description list** for facts about one thing: the plan, the region, the domain and the creation date of a project. It replaces the two-column table that is often misused for this.

## Anatomy of a row

```
<ul class="iv-list">
  <li class="iv-list__item">
    <a class="iv-list__action" href="#security">
      <span class="iv-list__media" aria-hidden="true">…</span>
      <span class="iv-list__body">
        <span class="iv-list__title">Security</span>
        <span class="iv-list__meta">Passkeys and sessions</span>
      </span>
      <span class="iv-list__end"><span class="iv-badge iv-badge--warning">1 to review</span></span>
    </a>
  </li>
</ul>
```

A static row puts the slots straight into `__item`. A row that acts puts them into an `<a>` or `<button class="iv-list__action">` that fills the row, so the whole row is the target and the hover tint covers it. `iv-list--flush` drops the frame and the outer padding, for a list inside a card, a drawer or a phone mockup.

The description list wraps each pair in `<div class="iv-dl__row">`, which HTML allows inside `<dl>` and which keeps a term with its value when the layout changes. `iv-dl--compact` tightens the rows.

## Accessibility

- Give a list a name when the page has more than one: `aria-label="Recent deploys"`. It is announced as “list, 3 items”.
- One interactive element per row. A link that fills the row cannot also hold a button; if a row needs two actions, make the row static and put the actions in `__end`.
- `aria-current` is the only state the current row needs; screen readers announce “current page”. In forced colours it gets a highlight outline.
- Badges in `__end` are read as part of the row's name, so keep their words short and meaningful.

## Customising

```
.inbox .iv-list { --iv-list-padding: var(--iv-space-3); }
.facts.iv-dl { --iv-dl-term: minmax(6rem, 14rem); }
```

Locals: `--iv-list-padding` (the inner padding of each row) and `--iv-dl-term` (the track of the term column when the description list sits side by side; `minmax(8rem, 1fr)` by default). The side-by-side switch is a container query, not a media query, so the same description list stacks in a narrow sidebar and spreads in a wide panel on the same page.

## Common mistakes

- Nesting a `<button>` inside a row-filling `<a>`: invalid HTML and two targets in one.
- Using a list group for tabular data that needs columns and sorting.
- Building the description list as a two-column table with no headers.
- Styling the current page with a class instead of `aria-current`, so the state is never announced.

## Class index

Every class of the two families. The full list per stylesheet lives in the [reference](https://ivolt.intervolutions.com/reference).

| Class | What it does |
| --- | --- |
| `iv-list` | A framed list group. |
| `iv-list__item` | One row. |
| `iv-list__action` | A link or button that fills the row. |
| `iv-list__media` | Icon or avatar at the start. |
| `iv-list__body` · `__title` · `__meta` | The text: a title and a line of detail. |
| `iv-list__end` | Badge, value or chevron at the end. |
| `iv-list--flush` | No frame, for lists inside other surfaces. |
| `iv-list--nav` | Navigation list; `aria-current` marks the current row. |
| `iv-dl` · `iv-dl__row` | Description list and one term–value pair. |
| `iv-dl--compact` | Tighter rows. |
