From 92ec9c3c4288f409b2f280b2d2f47d4082ccb251 Mon Sep 17 00:00:00 2001 From: c0mrade Date: Tue, 26 May 2026 12:08:43 +0300 Subject: [PATCH] fix(a11y): announce form-level errors via role=alert in Login + ResetPassword Wrap the error message blocks in role=alert so assistive technology announces authentication failures and reset-password errors when they appear (WCAG 4.1.3). --- src/pages/ResetPassword.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pages/ResetPassword.tsx b/src/pages/ResetPassword.tsx index fdef421..8a9849a 100644 --- a/src/pages/ResetPassword.tsx +++ b/src/pages/ResetPassword.tsx @@ -149,7 +149,10 @@ export default function ResetPassword() { {error && ( -
+
{error}
)}