File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -174,7 +174,7 @@ export default function LoginPage({
174174 callbackURL : safeCallbackUrl ,
175175 } ,
176176 {
177- onError : ( ctx ) => {
177+ onError : ( ctx : any ) => {
178178 logger . error ( 'Login error:' , ctx . error )
179179
180180 if ( ctx . error . code ?. includes ( 'EMAIL_NOT_VERIFIED' ) ) {
Original file line number Diff line number Diff line change @@ -420,7 +420,7 @@ function SignupFormContent({
420420 ? 'grid-rows-[1fr]'
421421 : 'grid-rows-[0fr]'
422422 ) }
423- aria-live = 'polite'
423+ aria-live = { showNameValidationError && nameErrors . length > 0 ? 'polite' : 'off' }
424424 >
425425 < div className = 'overflow-hidden' >
426426 < div className = 'mt-1 space-y-1 text-red-400 text-xs' >
@@ -459,7 +459,12 @@ function SignupFormContent({
459459 ? 'grid-rows-[1fr]'
460460 : 'grid-rows-[0fr]'
461461 ) }
462- aria-live = 'polite'
462+ aria-live = {
463+ ( showEmailValidationError && emailErrors . length > 0 ) ||
464+ ( emailError && ! showEmailValidationError )
465+ ? 'polite'
466+ : 'off'
467+ }
463468 >
464469 < div className = 'overflow-hidden' >
465470 < div className = 'mt-1 space-y-1 text-red-400 text-xs' >
@@ -512,7 +517,7 @@ function SignupFormContent({
512517 ? 'grid-rows-[1fr]'
513518 : 'grid-rows-[0fr]'
514519 ) }
515- aria-live = 'polite'
520+ aria-live = { showValidationError && passwordErrors . length > 0 ? 'polite' : 'off' }
516521 >
517522 < div className = 'overflow-hidden' >
518523 < div className = 'mt-1 space-y-1 text-red-400 text-xs' >
You can’t perform that action at this time.
0 commit comments