# ServicesLedger

> Services as a ruled ledger: index, offer, description and capabilities per row, with a Human / Machine switch that shows the same offers as plain text.

- Status: beta
- Group: marketing
- Page: https://www.digitaltableteur.com/design-system/components/services-ledger
- Contract: https://www.digitaltableteur.com/contracts/v1/ServicesLedger.contract.json

## When to use

Homepage services section since 2026-10-20 (replaces ServicesSection there). Labels and capability strings come from the page so all three locales apply.

## When not to use

- Do not put portfolio images or case-study art in the ledger; the homepage work section shows the work.
- Do not show facts in the machine view that the human view does not.

## Look-alikes

The contract names no look-alike with a deciding condition.

## Props

| Prop | Type | Default | Description | Required |
| --- | --- | --- | --- | --- |
| `title` | `string` | none | No description in the contract. | No |
| `description` | `string` | none | No description in the contract. | No |
| `services` | `ServicesLedgerItem[]` | none | No description in the contract. | Yes |
| `machineLinks` | `ServicesLedgerLink[]` | `[]` | Machine-readable endpoints listed at the top of the machine view. | No |
| `labels` | `ServicesLedgerLabels` | none | No description in the contract. | Yes |
| `className` | `string` | none | No description in the contract. | No |
| `id` | `string` | `services` | No description in the contract. | No |
| `donnyTarget` | `string` | `home.services` | Donny site action target id for this section. | No |

## Variants

No variant dimensions and no props with a fixed set of values.

## Invalid combinations

The contract records no invalid combinations.

## Keyboard

| Key | Behaviour |
| --- | --- |
| Tab | Reaches the Human / Machine view switch as one stop (arrow keys, Home and End change the view), then each row link. |

## Rules

Every item under When not to use is a MUST NOT. MUST and SHOULD follow RFC 2119.

| Level | Rule | How it is checked |
| --- | --- | --- |
| MUST | ARIA: The section is labelled by its heading. | Not yet verified: no evidence record. WCAG 4.1.2. |
| MUST | ARIA: The view switch is the SegmentedControl radiogroup, named by the view label; each option reports aria-checked. | Not yet verified: no evidence record. WCAG 4.1.2. |
| MUST | ARIA: Row index numbers are decorative (aria-hidden). | Not yet verified: no evidence record. WCAG 4.1.2. |
| MUST | Required stories produce no axe violations at the configured severity. | Automated by `npm run test:stories:matrix:ci`. WCAG 2.5.8. |
| MUST | The accessibility tree (role, name, state) matches the committed snapshot for every required story. | Automated by `npm run test:stories:matrix:ci`. WCAG 1.3.1, 4.1.2. |
| MUST | The component remains legible and operable under a real browser forced-colors: active pass. | Automated by `npm run test:stories:hc`. |
| MUST | Every documented keyboard interaction works as specified. | Not yet verified: no evidence record. WCAG 2.1.1, 2.1.2. |
| MUST | A human completed an end-to-end accessibility review of this component. | Manual review, last on 2026-10-31. |

## Install and import

- In-repo only. ServicesLedger is not exported from `@digitaltableteur/react`, so there is no public import path.

## Links

- Machine-readable contract (Design System Contract 1.0): https://www.digitaltableteur.com/contracts/v1/ServicesLedger.contract.json
- Markdown version of this page: https://www.digitaltableteur.com/design-system/components/services-ledger.md
- Component index as JSON: https://www.digitaltableteur.com/design-system/components.json
- All components: https://www.digitaltableteur.com/design-system/components
- Source: The implementation lives in a private repository. This page, its Markdown twin and the contract are generated from it at build time and are the public source of truth.
