Accessibility Attribute Regression Guard
Parses bounded markup and rejects three changes: one that drops an accessible name, role, or relationship from a retained element; one that hides a focusable element from assistive technology while it still takes keyboard focus; and one that stops the browser zooming.
Runs on
What it does
Block net removal of explicit accessibility relationships from markup changes.
When it fires
- implementation
- pre-commit
How it behaves
Block net removal of explicit accessibility relationships from markup changes.
It does not judge whether a name or role is accurate, only whether the change removed one that was there.
It does not see a focusable child inside a hidden wrapper, and it judges an element with no id, test id or name by how many of its kind still carry a name or relationship rather than by position.
It does not read a viewport value the page computes at runtime, and it does not measure rendered text size or reflow.
It does not report a problem the inspected edit did not introduce, and it does not claim accessibility conformance.
Configuration
targets/claude-code/accessibility-attribute-regression-guard.mjs
- Version
- 1.5.0
- Requires
- node
- Licence
- RiskThis automatic gate blocks net removal of explicit accessibility relationships from markup changes; a false denial can interrupt legitimate work, but it does not execute the blocked action.
- Medium
- ModeHow it works: fixed rules, model instructions, or both.
- Deterministic only
- Behaviour
- Enforces, blocks on violation
- On failure
- Denies and blocks
- LatencyThe entrypoint handles one intercepted event to block net removal of explicit accessibility relationships from markup changes without deferred work.
- Immediate
- Data retentionWhether data remains after use and who manages its storage.
- Not retained
- In packs
- Accessibility assurance
Often used with
All in Design