From 2ece23ad6f710f3a76a54cda17534606bad94811 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 13 Jun 2026 20:35:06 +0000 Subject: [PATCH] fix(a11y): WCAG 2.2 accessibility improvements across client components - 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 --- .../src/components/codeblock/Codeblock.tsx | 4 +- codewit/client/src/components/nav/Nav.tsx | 5 ++ .../src/components/videoui/VideoHeader.tsx | 3 +- codewit/client/src/pages/Read.tsx | 6 +- codewit/client/src/pages/UserManagement.tsx | 62 ++++++++++--- .../client/src/pages/course/StudentView.tsx | 1 + .../client/src/pages/course/TeacherView.tsx | 4 +- codewit/package-lock.json | 90 +------------------ 8 files changed, 70 insertions(+), 105 deletions(-) diff --git a/codewit/client/src/components/codeblock/Codeblock.tsx b/codewit/client/src/components/codeblock/Codeblock.tsx index 531c030f..2127d8d6 100644 --- a/codewit/client/src/components/codeblock/Codeblock.tsx +++ b/codewit/client/src/components/codeblock/Codeblock.tsx @@ -58,7 +58,7 @@ export default function CodeEditor({ {/* submit and reset buttons */}