You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
In the 'Login' modal, only the first link is accessible by keyboard, since any KeyDown event triggers the underlying action and therefore the next element cannot be focused by using the tab key. The same logic prevents users in the 'SignUp' and 'ForgotPassword' modal from focusing a different element once they have focused one of the links there.
To Reproduce
Steps to reproduce the behavior:
Go to 'Sign In'
Try to focus an element below 'Forgot Password?' by using the tab key
The 'Forgot Password' modal is opened when the 'Forgot Password?' link is focused and the tab key is pressed
Expected behavior
All neccessary elements can be focused by using the tab key and activated by hitting enter.
Proposed solution
Check which key is pressed in the event handler function, e.g. instead of onKeyDown={handleForgotPasswordClick}
use onKeyDown={(e) => e.key === "Enter" && handleForgotPasswordClick()}
The text was updated successfully, but these errors were encountered:
Type: minor
Description
In the 'Login' modal, only the first link is accessible by keyboard, since any KeyDown event triggers the underlying action and therefore the next element cannot be focused by using the tab key. The same logic prevents users in the 'SignUp' and 'ForgotPassword' modal from focusing a different element once they have focused one of the links there.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
All neccessary elements can be focused by using the tab key and activated by hitting enter.
Proposed solution
Check which key is pressed in the event handler function, e.g. instead of
onKeyDown={handleForgotPasswordClick}
use
onKeyDown={(e) => e.key === "Enter" && handleForgotPasswordClick()}
The text was updated successfully, but these errors were encountered: