diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 30eaa6a..8967a8a 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -25,3 +25,13 @@ updates: groups: actions: patterns: ["*"] + + - package-ecosystem: "npm" + cooldown: + default-days: 7 + directory: "/scripts/a11y" + schedule: + interval: "weekly" + groups: + a11y: + patterns: ["*"] diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e734c1a..c9bf2c0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -79,6 +79,32 @@ jobs: - name: Build the site run: ./site/build.sh + # axe-core (WCAG 2.2 A/AA, light and dark) over the website and the web UI + # running against fictional seed data. See scripts/a11y/run.sh. + a11y: + name: Accessibility + runs-on: ubuntu-latest + timeout-minutes: 15 + steps: + - uses: actions/checkout@v7 + with: + persist-credentials: false + fetch-depth: 0 # the versioned docs read every release tag + + - uses: actions/setup-go@v7 + with: + go-version-file: go.mod + + - uses: peaceiris/actions-hugo@2752ce1d29631191ea3f27c23495fa06139a5b78 # v3.2.1 + with: + hugo-version: "0.165.0" + + - uses: actions/setup-node@v7 + with: + node-version: "24" + + - run: scripts/a11y/run.sh + # The shared go-ci job covers Linux amd64. Release binaries also ship for # macOS, Windows and Linux arm64, so run the tests there too (no -race: # that needs cgo, and the release builds don't use it). @@ -134,7 +160,7 @@ jobs: required-checks-passed: name: Required checks passed runs-on: ubuntu-latest - needs: [ci, zizmor, coverage, site, cross-platform, vulncheck] + needs: [ci, zizmor, coverage, site, a11y, cross-platform, vulncheck] if: always() steps: - if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') diff --git a/docs/code-patterns.md b/docs/code-patterns.md index 1c21ad6..408d1d6 100644 --- a/docs/code-patterns.md +++ b/docs/code-patterns.md @@ -10,6 +10,7 @@ - **History startup**: CLI commands use `openHistoryStore`, which opens the schema and runs the versioned, transactional saved-reply migration via `inbox.MigrateNoDataResponses`. Keep new entry points on this helper so upgrades do not require visiting the web UI. The migration is local-only and retryable after a rollback. - **Pipeline UI**: counts and pending rows share `history.GetActionItems`; use it for Pipeline and Action Needed together. The Pipeline URL carries view, status, response type, search, review, and page filters. Response search filters the active profile in SQLite before pagination, including stored email bodies. - **Multi-profile scoping**: any new `history.Store` method that reads/writes per-user data should take a `profileID string` first parameter and filter by it (see [multi-profile.md](multi-profile.md)) - the two deliberate exceptions are `ClearBrokerResponses`/`GetAllBrokerResponses`, which operate on the one shared inbox across all profiles. +- **Accessibility**: CI runs axe-core (WCAG 2.2 A/AA, light and dark) over the website and the web UI against fictional seed data: `scripts/a11y/run.sh` runs the same thing locally (needs Go, Hugo, Node and Chrome). Add a new web UI page to the URL list in that script. Rules of thumb it enforces: every `Data Brokers - - + +

Loading…

diff --git a/site/static/css/site.css b/site/static/css/site.css index 38da9ea..8140849 100644 --- a/site/static/css/site.css +++ b/site/static/css/site.css @@ -41,8 +41,10 @@ body { color: var(--ink); font: 16px/1.65 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; } -a { color: var(--accent); text-decoration: none; } -a:hover { color: var(--accent-hover); text-decoration: underline; } +a { color: var(--accent); text-decoration: underline; text-underline-offset: .15em; } +a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; } +.brand, .topbar nav a, .btn { text-decoration: none; } +.topbar nav a:hover, .btn:hover { text-decoration: underline; } .topbar { display: flex; align-items: baseline; gap: 1.5rem; @@ -65,7 +67,7 @@ a:hover { color: var(--accent-hover); text-decoration: underline; } display: inline-block; padding: .6rem 1.1rem; border-radius: 8px; background: var(--accent); color: var(--on-accent); font-weight: 600; } -.btn:hover { background: var(--accent-hover); color: var(--on-accent); text-decoration: none; } +.btn:hover { background: var(--accent-hover); color: var(--on-accent); } .btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--border); } .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-top: 3.5rem; }