diff --git a/components/PasswordGate.tsx b/components/PasswordGate.tsx index 0922b2e..2066616 100644 --- a/components/PasswordGate.tsx +++ b/components/PasswordGate.tsx @@ -51,6 +51,7 @@ export default function PasswordGate({ slug, title }: PasswordGateProps) {
setPassword(e.target.value)} @@ -59,13 +60,20 @@ export default function PasswordGate({ slug, title }: PasswordGateProps) { className={styles.input} autoFocus required + disabled={loading} + aria-invalid={!!error} + aria-describedby={error ? 'password-error' : undefined} />
- {error &&

{error}

} + {error && ( + + )} );