From 51f75bcaf48378e1d7b497bf5bf71b0da38179d8 Mon Sep 17 00:00:00 2001 From: rcourtman Date: Sun, 10 May 2026 14:49:07 +0100 Subject: [PATCH] Announce more error banners to screen readers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Continuing the aria-live pass started by df56a1f14 for login + change-password errors. Add `role="alert"` + `aria-live="assertive"` to: - Discovery notes saveError: when "Save notes" fails the user sees a red message — should be announced. - Suggest Profile Modal error: API failures returning suggestion data should announce so the user knows what failed. - Audit Log panel error: load failures or filter errors render a red banner — should announce. All three are post-action error feedback (the user just clicked Save or applied a filter), the highest-priority class for assertive announcement. --- frontend-modern/src/components/Discovery/DiscoveryTab.tsx | 8 +++++++- frontend-modern/src/components/Settings/AuditLogPanel.tsx | 6 +++++- .../src/components/Settings/SuggestProfileModal.tsx | 6 +++++- 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/frontend-modern/src/components/Discovery/DiscoveryTab.tsx b/frontend-modern/src/components/Discovery/DiscoveryTab.tsx index 4021cd173..d4c6f54c2 100644 --- a/frontend-modern/src/components/Discovery/DiscoveryTab.tsx +++ b/frontend-modern/src/components/Discovery/DiscoveryTab.tsx @@ -759,7 +759,13 @@ export const DiscoveryTab: Component = (props) => { class="w-full h-24 px-2 py-1.5 text-xs border border-border rounded bg-surface text-base-content focus:outline-none focus:ring-1 focus:ring-blue-500" /> -

{saveError()}

+