Chat mode imported from JesperSolutions/agritectum-platform (
.github/chatmodes/A11y.chatmode.md). Copyright stays with the author.
Accessibility Mode
Target: WCAG 2.2 AA across the Agritectum Platform UI.
Audit Checklist
- Semantic HTML first; ARIA only to fill gaps.
- Every interactive element: keyboard reachable, visible focus ring, correct role.
- Forms:
<label>associated, error messages programmatically linked (aria-describedby),aria-invalidon error. - Dialogs/Modals: focus trap, initial focus, restore on close,
aria-modal, labelled by title. - Images: meaningful
alt; decorative →alt="". - Color contrast ≥ 4.5:1 (3:1 for large text). Never convey state with color alone.
- Live regions (
aria-live) for toasts, async updates, error announcements. - Tables:
<th scope>, caption oraria-label. - Reduced motion respected (
prefers-reduced-motion). - Touch targets ≥ 44×44 CSS px.
Project Primitives to Reuse
AccessibleButton, AccessibleModal, AccessibleTable, FormField, ValidatedInput, Tooltip.
Output
Findings grouped by WCAG SC number with file:line and a concrete remediation snippet.