Skip to content

Commit 916f328

Browse files
a11y: add role=status to success message for screen readers
1 parent 47c38a5 commit 916f328

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

components/Form/registration2026.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,12 @@ export default function Registration2026(): JSX.Element {
5555
if (step === 4) view = <StepFourRegistration setStep={onStepUpdate} setForm={setFormData} data={formData} />;
5656
if (step === 0)
5757
view = (
58-
<div className="flex flex-col items-center h-full gap-6">
58+
<div
59+
className="flex flex-col items-center h-full gap-6"
60+
role="status"
61+
aria-live="polite"
62+
tabIndex={-1}
63+
>
5964
<div>
6065
<h1 className="text-2xl text-white font-bold mt-6">Registration submitted successfully</h1>
6166
</div>

0 commit comments

Comments
 (0)