Add SVG accessibility: ARIA roles, keyboard nav, data table#33
Merged
mortonanalytics merged 1 commit intodevelopfrom Mar 29, 2026
Merged
Add SVG accessibility: ARIA roles, keyboard nav, data table#33mortonanalytics merged 1 commit intodevelopfrom
mortonanalytics merged 1 commit intodevelopfrom
Conversation
Adds cross-cutting accessibility features: - ARIA roles (graphics-document, graphics-object, graphics-symbol) on SVG structure with auto-generated labels from axis config - Keyboard navigation state machine: arrow keys traverse layers/points, live region announcements with 150ms debounce, focus ring styling - Hidden data table fallback for screen reader access (500-row cap) - Screen-reader-only utility class, focus ring CSS All features skip sparkline mode. Existing functionality preserved. JS: a11y/aria.js, descriptions.js, keyboard-nav.js, data-table.js CSS: focus ring, sr-only, data table styles Tests: 6 JS a11y contract tests Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
graphics-document,graphics-object,graphics-symbol) applied to SVG chart structure after each render cycle.myIO-sr-onlyutility classWhat changed
a11y/aria.js(role assignment),a11y/descriptions.js(auto-label generators),a11y/keyboard-nav.js(state machine),a11y/data-table.js(hidden table)initialize(), applies ARIA afterrenderCurrentLayers(), cleans up indestroy(). All skipped in sparkline modeTest plan
🤖 Generated with Claude Code