From 689805ca6ef5c8ff1020901bdd4e5ffeed1b07a2 Mon Sep 17 00:00:00 2001 From: Lotus Bot Date: Thu, 21 May 2026 15:36:59 -0400 Subject: [PATCH] fix(a11y): semantic headings, htmlFor/id associations, remove duplicate aria-labels H-tag: add as=h1/h2 to dialog/UIA/auth headings (21 components) Label: add htmlFor/id to PasswordRegisterForm (5 pairs) and PasswordResetForm (3 pairs) Dupe: remove duplicate aria-label from Controls.tsx screenshare button, MembersDrawer, Members, RoomInput Co-Authored-By: Claude Sonnet 4.6 --- src/app/components/DeviceVerification.tsx | 2 +- src/app/components/DeviceVerificationSetup.tsx | 4 ++-- src/app/components/LogoutDialog.tsx | 2 +- .../join-address-prompt/JoinAddressPrompt.tsx | 2 +- .../leave-room-prompt/LeaveRoomPrompt.tsx | 2 +- .../leave-space-prompt/LeaveSpacePrompt.tsx | 2 +- .../room-topic-viewer/RoomTopicViewer.tsx | 2 +- src/app/components/uia-stages/DummyStage.tsx | 2 +- src/app/components/uia-stages/EmailStage.tsx | 4 ++-- src/app/components/uia-stages/PasswordStage.tsx | 2 +- .../uia-stages/RegistrationTokenStage.tsx | 2 +- src/app/components/uia-stages/SSOStage.tsx | 2 +- src/app/components/uia-stages/TermsStage.tsx | 2 +- src/app/components/user-profile/PowerChip.tsx | 4 ++-- src/app/features/add-existing/AddExisting.tsx | 2 +- src/app/features/call/Controls.tsx | 1 - .../common-settings/general/RoomEncryption.tsx | 2 +- .../common-settings/general/RoomUpgrade.tsx | 2 +- .../features/common-settings/members/Members.tsx | 1 - src/app/features/room/MembersDrawer.tsx | 1 - src/app/features/room/RoomInput.tsx | 1 - src/app/pages/auth/login/Login.tsx | 2 +- .../pages/auth/register/PasswordRegisterForm.tsx | 15 ++++++++++----- .../auth/reset-password/PasswordResetForm.tsx | 9 ++++++--- 24 files changed, 37 insertions(+), 33 deletions(-) diff --git a/src/app/components/DeviceVerification.tsx b/src/app/components/DeviceVerification.tsx index 53875f9fc..5db4aa2e7 100644 --- a/src/app/components/DeviceVerification.tsx +++ b/src/app/components/DeviceVerification.tsx @@ -259,7 +259,7 @@ export function DeviceVerification({ request, onExit }: DeviceVerificationProps)
- Device Verification + Device Verification diff --git a/src/app/components/DeviceVerificationSetup.tsx b/src/app/components/DeviceVerificationSetup.tsx index 4f0be6b1f..e782ce69c 100644 --- a/src/app/components/DeviceVerificationSetup.tsx +++ b/src/app/components/DeviceVerificationSetup.tsx @@ -299,7 +299,7 @@ export const DeviceVerificationSetup = forwardRef - Setup Device Verification + Setup Device Verification @@ -334,7 +334,7 @@ export const DeviceVerificationReset = forwardRef - Reset Device Verification + Reset Device Verification diff --git a/src/app/components/LogoutDialog.tsx b/src/app/components/LogoutDialog.tsx index cc9bf067d..3cba32f80 100644 --- a/src/app/components/LogoutDialog.tsx +++ b/src/app/components/LogoutDialog.tsx @@ -43,7 +43,7 @@ export const LogoutDialog = forwardRef( size="500" > - Logout + Logout
diff --git a/src/app/components/join-address-prompt/JoinAddressPrompt.tsx b/src/app/components/join-address-prompt/JoinAddressPrompt.tsx index bceaa5543..1a5d7c3f0 100644 --- a/src/app/components/join-address-prompt/JoinAddressPrompt.tsx +++ b/src/app/components/join-address-prompt/JoinAddressPrompt.tsx @@ -80,7 +80,7 @@ export function JoinAddressPrompt({ onOpen, onCancel }: JoinAddressProps) { size="500" > - Join with Address + Join with Address diff --git a/src/app/components/leave-room-prompt/LeaveRoomPrompt.tsx b/src/app/components/leave-room-prompt/LeaveRoomPrompt.tsx index b7f0473be..2573b6345 100644 --- a/src/app/components/leave-room-prompt/LeaveRoomPrompt.tsx +++ b/src/app/components/leave-room-prompt/LeaveRoomPrompt.tsx @@ -66,7 +66,7 @@ export function LeaveRoomPrompt({ roomId, onDone, onCancel }: LeaveRoomPromptPro size="500" > - Leave Room + Leave Room diff --git a/src/app/components/leave-space-prompt/LeaveSpacePrompt.tsx b/src/app/components/leave-space-prompt/LeaveSpacePrompt.tsx index ee8deeeca..612c41117 100644 --- a/src/app/components/leave-space-prompt/LeaveSpacePrompt.tsx +++ b/src/app/components/leave-space-prompt/LeaveSpacePrompt.tsx @@ -66,7 +66,7 @@ export function LeaveSpacePrompt({ roomId, onDone, onCancel }: LeaveSpacePromptP size="500" > - Leave Space + Leave Space diff --git a/src/app/components/room-topic-viewer/RoomTopicViewer.tsx b/src/app/components/room-topic-viewer/RoomTopicViewer.tsx index 0b0927ac8..dfef32dd7 100644 --- a/src/app/components/room-topic-viewer/RoomTopicViewer.tsx +++ b/src/app/components/room-topic-viewer/RoomTopicViewer.tsx @@ -23,7 +23,7 @@ export const RoomTopicViewer = as< >
- + {name} diff --git a/src/app/components/uia-stages/DummyStage.tsx b/src/app/components/uia-stages/DummyStage.tsx index 7e0f85861..97a79803c 100644 --- a/src/app/components/uia-stages/DummyStage.tsx +++ b/src/app/components/uia-stages/DummyStage.tsx @@ -18,7 +18,7 @@ function DummyErrorDialog({ - {title} + {title} {message}