From 6ea6f11a7d2087292fc22921fd24e6083ff95e80 Mon Sep 17 00:00:00 2001 From: rcourtman Date: Sun, 10 May 2026 16:59:44 +0100 Subject: [PATCH] Label more icon-only buttons for screen readers Continues the labelling sweep: close X buttons in UpdateConfirmationModal, ChangePasswordModal, SuggestProfileModal, UserAssignmentsDialog, the Patrol configuration popover, the Toast dismiss control, the SSO provider test result and metadata preview dismiss buttons, and the compact ContainerUpdateBadge button (which becomes icon-only when compact). Each gets aria-label + title; the inline SVG icons get aria-hidden so the button label is the only announced text. --- .../src/components/Settings/ChangePasswordModal.tsx | 4 +++- frontend-modern/src/components/Settings/SSOProvidersPanel.tsx | 4 ++++ .../src/components/Settings/SuggestProfileModal.tsx | 4 +++- .../src/components/Settings/UserAssignmentsDialog.tsx | 2 ++ frontend-modern/src/components/Toast/Toast.tsx | 4 +++- frontend-modern/src/components/UpdateConfirmationModal.tsx | 4 +++- .../src/components/shared/ContainerUpdateBadge.tsx | 1 + .../src/features/patrol/PatrolIntelligenceHeader.tsx | 2 ++ 8 files changed, 21 insertions(+), 4 deletions(-) diff --git a/frontend-modern/src/components/Settings/ChangePasswordModal.tsx b/frontend-modern/src/components/Settings/ChangePasswordModal.tsx index 5aead9777..e7ae85efd 100644 --- a/frontend-modern/src/components/Settings/ChangePasswordModal.tsx +++ b/frontend-modern/src/components/Settings/ChangePasswordModal.tsx @@ -112,9 +112,11 @@ export const ChangePasswordModal: Component = (props) type="button" onClick={handleClose} disabled={loading()} + aria-label="Close password dialog" + title="Close" class="text-slate-400 hover:text-muted disabled:opacity-50" > - +