fix(a11y): WCAG 2.2 accessibility improvements#177
Open
Copilot wants to merge 1 commit into
Open
Conversation
- UserManagement: add role/aria-modal/aria-labelledby/focus management/Escape key to custom modal; associate search input with visible label; add aria-label and focus ring to icon-only search button - Nav: add aria-label/aria-expanded/aria-controls to hamburger toggle; add aria-label to drawer close button; expose drawer via id - Read: replace focus:outline-none with focus-visible:ring on like button and ActionBtn; add aria-pressed and aria-label to like button - VideoHeader: replace focus:outline-none with focus-visible:ring; add aria-label to like button - Codeblock: replace focus:outline-none with focus-visible:ring on reset and submit buttons - TeacherView: convert invite-link p tag to label; add aria-label to both role=switch enrollment toggle buttons - StudentView: add descriptive aria-label to lesson links that contain only icons in their completed state
Copilot created this pull request from a session on behalf of
kbuffardi
June 13, 2026 20:36
View session
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.
Several WCAG 2.2 violations across the client — missing programmatic labels, suppressed focus indicators, icon-only interactive elements with no accessible name, and a custom modal with no dialog semantics or focus management.
Modal dialog —
UserManagement.tsxrole="dialog"+aria-modal+aria-labelledbyon custom modalEscapecloses; visiblefocus-visiblerings on buttonsForm labels —
UserManagement.tsx,TeacherView.tsx<input>gets a visually-hidden<label>; icon-only search button getsaria-label<p>promoted to<label htmlFor="invite-link">Enrollment switches —
TeacherView.tsxrole="switch"buttons gainaria-label("Open for Enrollment", "Auto Enroll") — previously had no programmatic name despite visible adjacent textNavigation —
Nav.tsxaria-label("Open menu"/"Close menu"),aria-expanded,aria-controlsaria-label="Close menu"Focus indicators —
Read.tsx,VideoHeader.tsx,Codeblock.tsxfocus:outline-nonereplaced withfocus-visible:ring-2throughout; previously keyboard focus was invisible on these buttonsLike button state —
Read.tsx,VideoHeader.tsxaria-pressed(toggled) + descriptivearia-labelso toggled state is conveyed to assistive technologyLesson links —
StudentView.tsxCheckCircleIconorPlayIcongetaria-label(e.g."Open lesson: Intro to Loops"/"Intro to Loops (completed)")