-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
P2-importantHigh value, near-term roadmapHigh value, near-term roadmaparchitectureArchitectural changes or decisionsArchitectural changes or decisionsenhancementNew feature or requestNew feature or request
Description
pi-annotate (https://github.com/nicobailon/pi-annotate, MIT, by Nico Bailon) has a thorough accessibility capture implementation that extracts:
- ARIA role (explicit or implicit)
- Accessible name and description
- Focusable and disabled state
- ARIA states (expanded, pressed, checked, selected)
This maps directly to M3 (WCAG violation detection). Rather than building from scratch, adapt the pattern from pi-annotate and extend it with violation detection (color contrast, missing alt text, focus order).
Implementation:
- Create
src/content/accessibility-inspector.tsfollowing pi-annotategetAccessibilityInfo()pattern - Run on element selection alongside
extractElementData() - Add to annotation context (supports Include computed styles and DOM subtree in annotation output #21)
- Extend with WCAG violation checks for M3
Attribution: Credit pi-annotate by Nico Bailon in code comments where patterns are adapted.
See docs/design/library-research.md for full analysis.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P2-importantHigh value, near-term roadmapHigh value, near-term roadmaparchitectureArchitectural changes or decisionsArchitectural changes or decisionsenhancementNew feature or requestNew feature or request