|
1 | 1 | # Components |
2 | 2 |
|
3 | | -**Last Updated:** April 9, 2026 |
| 3 | +**Last Updated:** April 17, 2026 |
4 | 4 |
|
5 | 5 | Complete component specifications and guidelines for the Design System Starter Kit. |
6 | 6 |
|
@@ -1697,7 +1697,7 @@ const [isOpen, setIsOpen] = React.useState(false); |
1697 | 1697 |
|
1698 | 1698 | ## Navigation Components |
1699 | 1699 |
|
1700 | | -**Status:** Complete (HTML/CSS, React): 5 components total |
| 1700 | +**Status:** Complete (HTML/CSS, React): 6 components total |
1701 | 1701 |
|
1702 | 1702 | ### Menu |
1703 | 1703 |
|
@@ -2237,6 +2237,130 @@ const [isOpen, setIsOpen] = React.useState(false); |
2237 | 2237 |
|
2238 | 2238 | --- |
2239 | 2239 |
|
| 2240 | +### PageFooter |
| 2241 | + |
| 2242 | +**Status:** Complete (HTML/CSS, React) |
| 2243 | + |
| 2244 | +**Location:** `packages/components-{html|react}/src/page-footer/` / `packages/components-react/src/PageFooter/` |
| 2245 | + |
| 2246 | +**Tokens:** `tokens/components/page-footer.json` |
| 2247 | + |
| 2248 | +**Props:** `logoSlot`, `secondarySlot`, `contentSlot`, `linksSlot`, `colorScheme` (`'default'` | `'inverse'`), `className` |
| 2249 | + |
| 2250 | +**Features:** |
| 2251 | + |
| 2252 | +- Paginavoettekst met `accent-1` achtergrond en dikke `border-block-start` (4px): visuele tegenhanger van de `PageHeader border-block-end` |
| 2253 | +- `<footer>` element met impliciet `role="contentinfo"` landmark — geen extra attribuut nodig |
| 2254 | +- 4-koloms grid via `dsn-grid` + `dsn-col-12 dsn-col-lg-3`: vier gelijke slots naast elkaar op ≥ 64em, verticaal gestapeld op mobiel |
| 2255 | +- `row-gap` tussen gestapelde slots op mobiel via `--dsn-page-footer-slot-gap` |
| 2256 | +- `colorScheme="inverse"`: schakelt naar `accent-1-inverse` achtergrond; tekst-, link- en logokleuren worden via CSS custom property overrides automatisch aangepast voor contrast |
| 2257 | +- Logo-slot: `max-block-size` via `--dsn-page-footer-logo-max-block-size` (2rem); `--dsn-logo-color-primary` en `--dsn-logo-color-label` omgedraaid bij inverse voor correct doorkijkje-effect |
| 2258 | +- `secondarySlot` (slot 2): optioneel; verdwijnt op mobiel via `:empty { display: none }` als leeg |
| 2259 | + |
| 2260 | +**CSS-klassen:** |
| 2261 | + |
| 2262 | +| Klasse | Element | Beschrijving | |
| 2263 | +| ----------------------------- | ---------- | -------------------------------------------------------- | |
| 2264 | +| `dsn-page-footer` | `<footer>` | Rootblok: accent-1 achtergrond, dikke border-block-start | |
| 2265 | +| `dsn-page-footer--inverse` | `<footer>` | Modifier: accent-1-inverse kleurenschaal | |
| 2266 | +| `dsn-page-footer__inner` | `<div>` | Padding-container voor het grid | |
| 2267 | +| `dsn-page-footer__empty-slot` | `<div>` | Optioneel slot 2: verborgen via `:empty` wanneer leeg | |
| 2268 | + |
| 2269 | +**Design tokens:** |
| 2270 | + |
| 2271 | +| Token | Waarde | Beschrijving | |
| 2272 | +| -------------------------------------------- | ------------------------------------- | ---------------------------------------- | |
| 2273 | +| `--dsn-page-footer-background-color` | `{dsn.color.accent-1.bg-default}` | Achtergrondkleur (default) | |
| 2274 | +| `--dsn-page-footer-border-block-start-width` | `{dsn.border.width.thick}` | Breedte topborder (4px) | |
| 2275 | +| `--dsn-page-footer-border-block-start-color` | `{dsn.color.accent-1.border-default}` | Kleur topborder (default) | |
| 2276 | +| `--dsn-page-footer-padding-block` | `{dsn.space.block.6xl}` | Verticale padding boven en onder (64px) | |
| 2277 | +| `--dsn-page-footer-padding-inline` | `{dsn.space.inline.xl}` | Horizontale padding | |
| 2278 | +| `--dsn-page-footer-slot-gap` | `{dsn.space.block.xl}` | Verticale ruimte tussen gestapelde slots | |
| 2279 | +| `--dsn-page-footer-logo-max-block-size` | `2rem` | Maximale logohoogte (32px) | |
| 2280 | + |
| 2281 | +**Usage:** |
| 2282 | + |
| 2283 | +```html |
| 2284 | +<!-- HTML/CSS --> |
| 2285 | +<footer class="dsn-page-footer"> |
| 2286 | + <div class="dsn-page-footer__inner"> |
| 2287 | + <div class="dsn-grid"> |
| 2288 | + <div class="dsn-col-12 dsn-col-lg-3"> |
| 2289 | + <a href="/"> |
| 2290 | + <svg class="dsn-logo" aria-hidden="true"><!-- logo --></svg> |
| 2291 | + <span class="dsn-visually-hidden" |
| 2292 | + >Naam organisatie — terug naar homepage</span |
| 2293 | + > |
| 2294 | + </a> |
| 2295 | + </div> |
| 2296 | + <div class="dsn-col-12 dsn-col-lg-3 dsn-page-footer__empty-slot"> |
| 2297 | + <p class="dsn-paragraph"> |
| 2298 | + Korte beschrijving. |
| 2299 | + <a class="dsn-link" href="/about">Meer informatie</a>. |
| 2300 | + </p> |
| 2301 | + </div> |
| 2302 | + <div class="dsn-col-12 dsn-col-lg-3"> |
| 2303 | + <ul class="dsn-unordered-list"> |
| 2304 | + <li><a class="dsn-link" href="/nieuws">Nieuws</a></li> |
| 2305 | + <li><a class="dsn-link" href="/over-ons">Over ons</a></li> |
| 2306 | + </ul> |
| 2307 | + </div> |
| 2308 | + <div class="dsn-col-12 dsn-col-lg-3"> |
| 2309 | + <ul class="dsn-unordered-list"> |
| 2310 | + <li><a class="dsn-link" href="/privacy">Privacyverklaring</a></li> |
| 2311 | + <li> |
| 2312 | + <a class="dsn-link" href="/accessibility">Toegankelijkheid</a> |
| 2313 | + </li> |
| 2314 | + </ul> |
| 2315 | + </div> |
| 2316 | + </div> |
| 2317 | + </div> |
| 2318 | +</footer> |
| 2319 | +``` |
| 2320 | + |
| 2321 | +```tsx |
| 2322 | +// React |
| 2323 | +<PageFooter |
| 2324 | + logoSlot={ |
| 2325 | + <a href="/"> |
| 2326 | + <Logo aria-hidden={true} /> |
| 2327 | + <span className="dsn-visually-hidden"> |
| 2328 | + Naam organisatie — terug naar homepage |
| 2329 | + </span> |
| 2330 | + </a> |
| 2331 | + } |
| 2332 | + secondarySlot={ |
| 2333 | + <Paragraph> |
| 2334 | + Korte beschrijving. <Link href="/about">Meer informatie</Link>. |
| 2335 | + </Paragraph> |
| 2336 | + } |
| 2337 | + contentSlot={ |
| 2338 | + <UnorderedList> |
| 2339 | + <li> |
| 2340 | + <Link href="/nieuws">Nieuws</Link> |
| 2341 | + </li> |
| 2342 | + <li> |
| 2343 | + <Link href="/over-ons">Over ons</Link> |
| 2344 | + </li> |
| 2345 | + </UnorderedList> |
| 2346 | + } |
| 2347 | + linksSlot={ |
| 2348 | + <UnorderedList> |
| 2349 | + <li> |
| 2350 | + <Link href="/privacy">Privacyverklaring</Link> |
| 2351 | + </li> |
| 2352 | + <li> |
| 2353 | + <Link href="/accessibility">Toegankelijkheid</Link> |
| 2354 | + </li> |
| 2355 | + </UnorderedList> |
| 2356 | + } |
| 2357 | +/> |
| 2358 | +``` |
| 2359 | + |
| 2360 | +**Tests:** React (11 tests) |
| 2361 | + |
| 2362 | +--- |
| 2363 | + |
2240 | 2364 | ## Branding Components |
2241 | 2365 |
|
2242 | 2366 | **Status:** Complete (HTML/CSS, React): 1 component total |
|
0 commit comments