Skip to content

docs: add a11y audit findings - #62

Merged
rohanjha9260 merged 2 commits into
mainfrom
docs/a11y-audit-findings
Nov 21, 2026
Merged

rohanjha9260 merged 2 commits into
mainfrom
docs/a11y-audit-findings

Conversation

@Sagnikabhol

Copy link
Copy Markdown
Collaborator

Summary of Changes

  • Executed comprehensive accessibility audit across all marketing pages and sections for both desktop (1440px) and mobile (375px) viewports.
  • Documented actionable findings in docs/ACCESSIBILITY_AUDIT.md mapping WCAG 2.2 criteria, Axe rules, severities, exact component files and lines, and remediation proposals.
  • Identified 7 distinct findings (1 Blocker, 4 Major, 2 Minor) across contrast, interactive element nesting, heading order, focus visibility, mobile drawer semantics, ARIA tab roles, and touch target sizing.
  • Adheres strictly to Issue Accessibility audit: run axe on the marketing pages and file findings #34 "Report only" rule - no implementation code is modified in this PR.

Traceability & Requirements Mapping

Type of Change

  • docs: Documentation, ADRs, or planning files

Mandatory Security & Policy Checklist (All Must Be Checked)

  • Application Isolation: Changes in one app do not break independent compilation/deployment of the other.
  • Zero Credential Leaks: No secrets, keys, or phone numbers in code or fixtures.
  • WhatsApp Business Policy Compliance: Workflows verify explicit opt-in/consent before dispatch.
  • Idempotency Guard: All outbound dispatches and webhook ingestions enforce duplicate prevention.
  • Financial Metering Attribution: Outbound billable events emit traceable usage records.
  • Quality Checks: Documentation syntax and formatting verified.

Testing Performed

  • Axe Core 4.10 rules evaluated against all sections of apps/web/app/(marketing).
  • Relative luminance and contrast ratios verified mathematically.
  • Heading order and interactive nesting validated.

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Nov 14, 2026
@Sagnikabhol

Sagnikabhol commented Nov 14, 2026 •

Copy link
Copy Markdown
Collaborator Author

PR is ready for review!

@rohanjha9260
rohanjha9260 self-requested a review November 19, 2026 13:59

@rohanjha9260 rohanjha9260 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


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

  1. 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.
  2. 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").
  3. 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 #747780 narrowly misses the WCAG AA $4.5:1$ threshold for text $&lt; 18\text{pt}$, while confirming that primary copy #A0A2A8 safely passes at $7.83:1$.
  4. 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:
    <span className="sr-only">Navigation links and account access menu</span>
    A plain <span> element does not clear the Radix UI Dialog warning. Radix UI checks for an associated aria-describedby or 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:
    1. Use the exported component from @pathixo/ui:
      <DrawerDescription className="sr-only">Navigation links and account access menu</DrawerDescription>
    2. Or explicitly pass aria-describedby={undefined} to DrawerContent.

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)
    In channel-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–370 to Lines 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 #747780 in:
    • 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", and aria-controls to the tab container and buttons.
  • Fix Needed: Note in the remediation that the tab content panels below must also be marked with role="tabpanel" and aria-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.

@Sagnikabhol
Sagnikabhol force-pushed the docs/a11y-audit-findings branch from 856be04 to 780fc07 Compare November 20, 2026 16:08
@Sagnikabhol

Copy link
Copy Markdown
Collaborator Author

Hi @rohanjha9260,

All requested updates and visual screenshots have been addressed and squashed into a clean commit on docs/ACCESSIBILITY_AUDIT.md:

  • Real Browser Screenshots Embedded: Added live captures for the Hero section, Capabilities grid, WhatsApp channel showcase, and Marketing footer.
  • Drawer Remediation Updated: Added <DrawerDescription className="sr-only"> from @pathixo/ui to clear Radix UI dialog warnings.
  • Accurate Citations & Omitted Locations: Corrected line numbers for email tabs and added citations for dashboard-preview.tsx, workflow-pipeline.tsx, and table row action targets.
  • Complete WAI-ARIA Spec: Added role="tabpanel" and aria-labelledby specification to Finding A11Y-06.

The document is ready for your final approval and merge. Thank you!

@rohanjha9260
rohanjha9260 self-requested a review November 21, 2026 13:01

@rohanjha9260 rohanjha9260 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Re-Review & Final Approval — PR #62

All 5 requested revisions from the previous review have been verified and confirmed:

  1. Visual Screenshots: Live browser inspection captures added to docs/assets/ and embedded across all findings in docs/ACCESSIBILITY_AUDIT.md.
  2. Drawer Remediation: Suggested fix accurately updated to use <DrawerDescription className="sr-only"> from @pathixo/ui / aria-describedby={undefined}.
  3. Tabline Citations: Corrected email tab citation to channel-showcase.tsx:338–353.
  4. Complete Locations: Added missing #747780 locations (dashboard-preview.tsx, workflow-pipeline.tsx) and all 6 table action buttons for touch target sizing.
  5. WAI-ARIA Pattern: Added role="tabpanel" and aria-labelledby specifications to A11Y-06.

All 10 CI workflows are passing green. This PR fully satisfies the requirements of Issue #34 and is approved for merge.

@rohanjha9260
rohanjha9260 merged commit 1fa28cc into main Nov 21, 2026
12 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Accessibility audit: run axe on the marketing pages and file findings

2 participants