From 1968a0e481635c6dc91cae6fc76247291b18dee5 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 28 Feb 2026 16:12:25 +0000 Subject: [PATCH] ci(a11y): add djlint HTML accessibility lint to CI pipeline - Add html-lint job to CI that runs djlint on all PRs - Configure djlint in pyproject.toml with Jinja2 profile and accessibility rules - Add djlint to requirements-dev.txt - Expand accessibility section in frontend Copilot instructions (WCAG 2.1 AA) - Wire html-lint into CI dependency chain (test/mypy/build depend on it) Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com> --- .github/instructions/frontend.instructions.md | 57 +++++++++++++++++-- .github/workflows/ci.yml | 28 ++++++++- pyproject.toml | 11 ++++ requirements-dev.txt | 1 + 4 files changed, 88 insertions(+), 9 deletions(-) diff --git a/.github/instructions/frontend.instructions.md b/.github/instructions/frontend.instructions.md index 0ba794ab..e5b4501e 100644 --- a/.github/instructions/frontend.instructions.md +++ b/.github/instructions/frontend.instructions.md @@ -86,12 +86,57 @@ These instructions apply to all files in the `frontend/` directory (templates, C ``` -### Accessibility -- Use semantic HTML elements (`nav`, `main`, `article`, `section`) -- Include `alt` text for images -- Use proper heading hierarchy (h1 → h2 → h3) -- Add ARIA labels when needed -- Ensure keyboard navigation works +### Accessibility (WCAG 2.1 Level AA Required) + +DocuElevate targets **WCAG 2.1 Level AA** compliance. Every template change **must** follow these rules. +For the full guide with examples, see `docs/AccessibilityGuide.md`. + +#### Semantic HTML (WCAG 1.3.1) +- Use semantic elements: `