mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 09:33:46 +00:00
fix(a11y): announce Login form-level error via role=alert
This commit is contained in:
@@ -425,7 +425,10 @@ export default function Login() {
|
||||
/* Main auth card */
|
||||
<div className="card">
|
||||
{error && (
|
||||
<div className="mb-4 rounded-xl border border-error-500/30 bg-error-500/10 px-4 py-2.5 text-sm text-error-400">
|
||||
<div
|
||||
role="alert"
|
||||
className="mb-4 rounded-xl border border-error-500/30 bg-error-500/10 px-4 py-2.5 text-sm text-error-400"
|
||||
>
|
||||
{error}
|
||||
</div>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user