Repository navigation
docs: add a11y audit findings - #62
Conversation
|
PR is ready for review!
|
rohanjha9260
left a comment
There was a problem hiding this comment.
Pull Request Review: PR #62 — docs: add a11y audit findings
Verdict: Changes Requested / Conditional Approval
(The audit report is technically sound and well-structured, but requires 5 documentation-level corrections and missing screenshot attachments before merging).
What Was Done Correctly
-
Strict "Report Only" Adherence:
- Accurately followed the non-negotiable rule in Issue #34: no implementation code was touched. All audit findings are properly isolated within
docs/ACCESSIBILITY_AUDIT.md.
- Accurately followed the non-negotiable rule in Issue #34: no implementation code was touched. All audit findings are properly isolated within
-
Accurate WCAG & Axe Rule Mapping:
- All 7 findings are correctly mapped to their respective WCAG 2.2 Success Criteria (4.1.2, 1.4.3, 2.4.7, 1.3.1, 2.5.8) and Axe Core rules.
- Categorizing nested interactive elements (
<button>inside<a>/<Link>) as a Blocker is correct; it violates the HTML5 content model and causes screen readers to announce duplicated roles ("Link Button").
-
Mathematical Rigor on Contrast (A11Y-02):
- The luminance (
$L_1 = 0.182$ ,$L_2 = 0.0016$ ) and contrast ratio ($4.49:1$ ) calculations are precise, proving that#747780narrowly misses the WCAG AA$4.5:1$ threshold for text$< 18\text{pt}$ , while confirming that primary copy#A0A2A8safely passes at$7.83:1$ .
- The luminance (
-
CI & Governance Compliance:
- The PR title adheres to the Conventional Commits specification.
- All 10 GitHub Actions CI workflows passed cleanly.
- The PR description includes all 6 mandatory security and compliance checklist items.
Fixes Needed in this Documentation (docs/ACCESSIBILITY_AUDIT.md)
Please address the following 5 corrections directly in the audit document before we merge this PR:
1. Missing Screenshots (Mandatory Issue #34 Rule)
- The Rule: Issue #34 explicitly mandates:
"Rules: Screenshots required for every finding"
- Fix Needed: Embed visual inspection screenshots (DevTools / Axe Core dumps) into the document or link them directly from the issue thread. This is an explicit acceptance criterion for Issue #34.
2. Technical Inaccuracy in Remediation for A11Y-05 (Mobile Drawer)
- The Issue: Under Finding A11Y-05, the suggested remediation states:
A plain
<span className="sr-only">Navigation links and account access menu</span>
<span>element does not clear the Radix UI Dialog warning. Radix UI checks for an associatedaria-describedbyor an internal<DialogPrimitive.Description>. A raw span will still trigger the runtime console warning:
Warning: Missing Description or aria-describedby={undefined} for {Dialog.Content}. - Fix Needed: Update the suggested fix in the document to either:
- Use the exported component from
@pathixo/ui:<DrawerDescription className="sr-only">Navigation links and account access menu</DrawerDescription>
- Or explicitly pass
aria-describedby={undefined}toDrawerContent.
- Use the exported component from
3. Incorrect Line Citations in A11Y-06 (Interactive Tabs)
- The Issue: Finding A11Y-06 cites the email tabs at:
apps/web/app/(marketing)/_components/channel-showcase.tsx (Lines 125–139 & 355–370)
Inchannel-showcase.tsx, lines 355–370 actually contain the "New campaign" CTA button and table container. The email tablist is actually located at Lines 338–353. - Fix Needed: Correct the line reference in the document from
Lines 355–370toLines 338–353.
4. Incomplete Affected Locations in A11Y-02 & A11Y-07
To ensure senior engineers can triage fix issues without re-running tools, include all omitted occurrences:
- Finding A11Y-02 (Contrast): The document lists header, footer, showcase, and trust-bar, but misses
#747780in:apps/web/app/(marketing)/_components/dashboard-preview.tsx(Lines 114, 119, 269, 296, 309, 363, 378, 393)apps/web/app/(marketing)/_components/workflow-pipeline.tsx(Lines 56, 70, 81, 91)
- Finding A11Y-07 (Touch Target Sizing): In
channel-showcase.tsx, only rows 1 & 2 of the WhatsApp table (Lines 198, 231) are cited. The document omits the remaining 4 action buttons with the identical sub-minimum bounding box:- Line 264 (WhatsApp Table Row 3)
- Lines 409, 438, 467 (Email Table Rows 1, 2, 3)
- Fix Needed: Add these file locations and line numbers to the respective tables and finding sections in the report.
5. Incomplete WAI-ARIA Specification in A11Y-06
- The Issue: The suggested fix mentions adding
role="tablist",role="tab", andaria-controlsto the tab container and buttons. - Fix Needed: Note in the remediation that the tab content panels below must also be marked with
role="tabpanel"andaria-labelledby="<tab_id>"to form a complete, accessible WAI-ARIA tab pattern.
Summary
The foundation, severity assessment, and mathematical analysis of this report are excellent. Once the missing screenshots are added and the citations and suggested code snippets are updated, this PR will be approved and merged.
856be04 to
780fc07
Compare
|
Hi @rohanjha9260, All requested updates and visual screenshots have been addressed and squashed into a clean commit on
The document is ready for your final approval and merge. Thank you! |
rohanjha9260
left a comment
There was a problem hiding this comment.
✅ Re-Review & Final Approval — PR #62
All 5 requested revisions from the previous review have been verified and confirmed:
- Visual Screenshots: Live browser inspection captures added to
docs/assets/and embedded across all findings indocs/ACCESSIBILITY_AUDIT.md. - Drawer Remediation: Suggested fix accurately updated to use
<DrawerDescription className="sr-only">from@pathixo/ui/aria-describedby={undefined}. - Tabline Citations: Corrected email tab citation to
channel-showcase.tsx:338–353. - Complete Locations: Added missing
#747780locations (dashboard-preview.tsx,workflow-pipeline.tsx) and all 6 table action buttons for touch target sizing. - WAI-ARIA Pattern: Added
role="tabpanel"andaria-labelledbyspecifications to A11Y-06.
All 10 CI workflows are passing green. This PR fully satisfies the requirements of Issue #34 and is approved for merge.
Summary of Changes
1440px) and mobile (375px) viewports.docs/ACCESSIBILITY_AUDIT.mdmapping WCAG 2.2 criteria, Axe rules, severities, exact component files and lines, and remediation proposals.Traceability & Requirements Mapping
Type of Change
docs: Documentation, ADRs, or planning filesMandatory Security & Policy Checklist (All Must Be Checked)
Testing Performed
apps/web/app/(marketing).