fix(a11y): restore keyboard access to forgot-password, add role=alert to error
This commit is contained in:
@@ -148,7 +148,6 @@ function LoginPage() {
|
|||||||
<Link
|
<Link
|
||||||
to="/forgot-password"
|
to="/forgot-password"
|
||||||
className="text-xs text-text-muted hover:text-accent"
|
className="text-xs text-text-muted hover:text-accent"
|
||||||
tabIndex={-1}
|
|
||||||
>
|
>
|
||||||
Forgot password?
|
Forgot password?
|
||||||
</Link>
|
</Link>
|
||||||
@@ -209,7 +208,7 @@ function LoginPage() {
|
|||||||
)}
|
)}
|
||||||
|
|
||||||
{error && (
|
{error && (
|
||||||
<div className="rounded-md bg-error/10 border border-error/30 px-3 py-2" data-testid="login-error">
|
<div className="rounded-md bg-error/10 border border-error/30 px-3 py-2" data-testid="login-error" role="alert">
|
||||||
<p className="text-xs text-error">{error}</p>
|
<p className="text-xs text-error">{error}</p>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user