feat: Add ARIA Labels, Keyboard Navigation, and Screen Reader Support to Editors and Panels (#770)#772
Open
karanpatill wants to merge 1 commit intoaccordproject:mainfrom
Conversation
Resolves accordproject#770. Added ARIA labels, semantic roles, and keyboard navigation to PlaygroundSidebar, ProblemPanel, AIChatPanel, and Monaco editors. Signed-off-by: karanpatill <karanpatil82005@gmail.com>
✅ Deploy Preview for ap-template-playground ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
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
Implements WCAG-compliant accessibility features across the Template Playground,
resolving #770. Users with disabilities (visual impairments, motor disabilities)
can now fully interact with the application using keyboard-only navigation and
assistive technologies like screen readers.
Changes Made
Monaco Editors (Concerto, Markdown, JSON)
ariaLabelproperty to editor options:"Concerto Editor"for the Concerto model editor"Markdown Editor"for the TemplateMark editor"JSON Editor"for the agreement data editorPlaygroundSidebar
role="region"andaria-label="Playground Sidebar"to the<aside>elementaria-label="Top Navigation"andaria-label="Bottom Navigation"to<nav>elementsonKeyDownhandlers to all sidebar items for Enter and Space key activationProblemPanel
role="region"andaria-label="Problems Panel"to the container elementAIChatPanel
role="region"andaria-label="AI Chat Panel"to the container elementrole="button",tabIndex={0},aria-pressed, andonKeyDownhandlers to the context toggle buttons (TemplateMark, Concerto, Data)aria-label="Message to AI Assistant"to the chat textareaTesting
aria-pressedupdates correctly on context togglesrole="region"landmarks are announced correctly by screen readersWCAG Compliance