Last updated: 2026-11-10
The target is WCAG AA on every page, in both themes and both languages. Visual rules (contrast values, focus style, tokens) are in ../DESIGN.md; this document says what each part of the site guarantees and how it is checked.
<html lang>isesoren(Layout.astro), so assistive technology reads each language correctly.- A skip link to
#main-contentis the first focusable element and shows on focus. - Exactly one
h1(Heroon the home page,CaseStudyon case studies,NotFoundon the 404 pages,PageIntroelsewhere),h2per section andh3in cards and rows. On an ecosystem project page each part title is anh2and the sections inside a part areh3.tests/routes.spec.tschecks the singleh1on every route. - Visible focus on every interactive element (
:focus-visible, 2px--linkoutline). - Controls without visible text have an
aria-label; controls with visible text keep that text inside the label.Button,TextLinkand the language toggle enforce it withlabelInName(src/utils/a11y.ts), andtests/label-in-name.spec.tschecks every page of the sitemap. - Icon-only controls are at least 44x44 px; decorative images and icons are hidden from assistive technology (
alt=""oraria-hidden); content images have descriptivealttext in the page language. - Images declare
widthandheight, which avoids layout shift. prefers-reduced-motion: reduceclamps animations and transitions and turns off smooth scroll, the load fade and the scroll reveal. The reveal fades elements in only while they enter the viewport and they reach full opacity before they are fully on screen, so settled text keeps its designed contrast;tests/a11y-axe.spec.tsaudits that settled page with reduced motion.- Color is never the only signal: the active navigation item also gets a 2px bar, and the featured project also gets a badge.
- Theme: dark by default, switchable; the toggle has a state-aware label. Contrast is verified in both themes.
| Component | Behavior |
|---|---|
Mobile menu (nav.ts) |
aria-expanded and aria-controls; the overlay is inert while closed; focus moves to the first link; Tab is trapped; Escape closes and returns focus |
| Navigation links | aria-current="page" on the current page; aria-current="location" on the Stack link while #stack is in view |
| Project filters | Buttons with aria-pressed; the "no results" block is role="status" |
| Accordions | Native <details> and <summary> (Disclosure, PartDisclosure); see below |
| Quote form | See below |
| Navigation loader | Decorative (aria-hidden), shown during page transitions |
| Calendly embed | Contact page only: a role="region" with an aria-label, and a <noscript> fallback with a link to Calendly and the email address |
- Each part of a project (rich or link-only) is a
<details id="app">(orlanding,blog...) with a heading (h2) inside its<summary>, so the part should show in the heading outline (checked in Chromium's accessibility tree only; seeROADMAP.md) and the browser provides the expanded state and the Enter and Space toggle. Link-only parts are plain rows with the sameh2, not accordions. - The visible open and close text ("Ver detalle" / "Ocultar", "View details" / "Hide") is part of the summary, so the accessible name already contains it (label in name).
- A URL hash, a hash change or a click on a contents link opens the part it targets (
src/scripts/part-disclosure.ts), so a deep link never lands on a closed panel (a target nested inside a closed part opens it and scrolls to the target; a malformed hash does not throw); the first part starts open. - The open and close animation lives in the shared script
src/scripts/disclosure.tsand is skipped underprefers-reduced-motion: reduce; the scroll to a part usesautobehavior in that case. Without scripts the accordions still toggle. - Project links are stacked in one column on the page header and in each accordion (
ProjectActionswithstacked), in the sameTextLinkstyle as the rest of the site; cards on the index and home show only the case-study link. tests/ecosystem.spec.tscovers the keyboard toggle, the hash opening (malformed and nested hashes included), the header link column and the absence of external links on cards.
- The form is named by its title (
aria-labelledby), every field sits inside a<label>, required fields are marked in text ("Required fields") and with therequiredattribute; the red asterisk is decorative (aria-hidden) with a tooltip. - Inputs use the right
type,autocompleteandinputmode(name, email, tel, organization). - The case-study button opens the form with the project's related catalog services preselected (
?service=per service, from the catalog examples or the explicit assignment inquoteOptions.ts); the visitor can change them before the submit button enables. - Country, budget and the three optional fields are native
<select>elements inside their<label>, with a disabled placeholder option on the required ones; fields the visitor has touched and left invalid get a red border (:user-invalid). - The submit button is a real
type="submit"that staysdisableduntil all required fields, one service and the privacy consent are set;aria-describedbypoints to the hint that says what is missing. - Errors use
role="alert"; the success block hasaria-live="polite"and receives focus after sending. - The honeypot field is
aria-hiddenand not focusable.
- Lighthouse CI runs on four pages (home, projects, about, English home) and fails the build when the accessibility score is below 0.9 (
lighthouserc.json). - Playwright covers the skip link, the project accordions and hash opening, the mobile menu (open, close with Escape,
aria-expanded),aria-pressedfilters, the quote form states and the absence of horizontal overflow on mobile. - Manual review is still needed for heading order and contrast on case-study pages.
tests/a11y-axe.spec.ts runs axe (@axe-core/playwright, WCAG 2.0, 2.1 and 2.2 A and AA rules) on every page of the sitemap, the four /cop/ variants and both 404 pages, in the light and the dark theme, and fails on any violation. The Lighthouse job covers four pages, not all of them.
- Keyboard: reach and operate everything with Tab, Enter, Space and Escape.
- One
h1, no skipped heading levels. - Labels,
alttext andaria-labelin both languages; a visible label always stays inside thearia-label(checked bytests/label-in-name.spec.ts). - Focus is visible and never trapped except in the open mobile menu.
- Check both themes and a 360 px wide viewport.