Skip to content

Add WCAG 2.2 SC-tagged accessibility rule engine#224

Merged
JE-Chen merged 1 commit into
devfrom
feat/wcag-batch
Jun 19, 2026
Merged

Add WCAG 2.2 SC-tagged accessibility rule engine#224
JE-Chen merged 1 commit into
devfrom
feat/wcag-batch

Conversation

@JE-Chen

@JE-Chen JE-Chen commented Jun 19, 2026

Copy link
Copy Markdown
Member

Round-2 web-research follow-up, batch 6 — extends the accessibility audit with a WCAG 2.2 / EN 301 549 success-criterion layer, wired through all five layers (facade, AC_*, MCP, Script Builder) with headless tests + EN/Zh v16 docs + README sections.

Feature (utils/a11y_audit/wcag.py, additive — base audit untouched)

  • WCAG-tagged conformance auditwcag_audit(level=...): tags each defect with its success-criterion id/name/level/impact, filters to A/AA/AAA, and returns a conformance report (conformant, by_criterion, by_impact, findings) mappable to EN 301 549. Mapped SCs: 4.1.2 (name), 1.4.3 (contrast), 1.4.10 (reflow/truncation), 2.5.8 (target size).
  • Target Size (SC 2.5.8)audit_target_size(elements, min_px=24): new WCAG 2.2 rule from element bounds. tag_issue annotates any base AuditIssue with its SC.
  • AC_wcag_audit + ac_wcag_audit; facade wcag_audit / audit_target_size.

Why

Surfaced by the multi-agent web research (QA/accessibility angle) as the highest-compliance-value gap — the existing audit had only 3 untagged checks; EAA is enforceable since June 2025.

Verification

  • test/unit_test/headless/test_wcag_batch.py — 7 tests pass (target-size rule, SC tagging, level filtering, conformance report, wiring).
  • ruff clean; radon no CC≥C; bandit clean; import je_auto_control PySide6-free.

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 36 complexity · 3 duplication

Metric Results
Complexity 36
Duplication 3

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@JE-Chen JE-Chen merged commit 11ea99d into dev Jun 19, 2026
16 checks passed
@JE-Chen JE-Chen deleted the feat/wcag-batch branch June 19, 2026 03:18
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant