From 6d4d63f3694afd71ea944b7baf22b959b8ceb6d6 Mon Sep 17 00:00:00 2001 From: Konstantin Beregovoy Date: Thu, 30 Jul 2026 11:19:28 +0300 Subject: [PATCH 1/2] DL161 expand a11y form and label validation Improve static form accessibility checks in a11y-validator: checkbox/radio labeling, ARIA name integrity, duplicate ids, and label structure hygiene. Update design log #161, index, and DL#147 validation rules catalog. --- ...147 - jay-html validation rules catalog.md | 10 +- ... - a11y form and label validation rules.md | 166 ++++++++++++++++++ design-log/index.md | 2 + .../lib/validators/a11y-validator.ts | 158 ++++++++++++++++- .../test/validators/a11y-validator.test.ts | 160 +++++++++++++++++ 5 files changed, 486 insertions(+), 10 deletions(-) create mode 100644 design-log/161 - a11y form and label validation rules.md diff --git a/design-log/147 - jay-html validation rules catalog.md b/design-log/147 - jay-html validation rules catalog.md index c3699945..00b4fa50 100644 --- a/design-log/147 - jay-html validation rules catalog.md +++ b/design-log/147 - jay-html validation rules catalog.md @@ -64,15 +64,21 @@ Package: `@jay-framework/a11y-validator` (monorepo, dev dependency) | Rule | Severity | Element | WCAG | What it checks | | ------------------------------ | -------- | ----------------------------------- | ----- | ------------------------------------------------------------------------------------- | | Image missing alt | error | `` | 1.1.1 | No `alt` attribute | -| Form input without label | error | ``, `