supabase-community / auth-ui

Pre-built Auth UI for React
https://supabase.com/docs/guides/auth/auth-helpers/auth-ui
MIT License
487 stars 121 forks source link

Added auto focusing to the first input field of each screen and fixed the reset password flow #91

Closed michaelessiet closed 1 year ago

michaelessiet commented 1 year ago

What kind of change does this PR introduce?

This PR includes the feature request of auto focusing made by issue number #89 . It also contains a fix to the update password component not showing which was pointed out in issue #77. All of this was added and fixed in the Solid.js package only.

What is the current behavior?

89 and #77

What is the new behavior?

Once the page is loaded the first input field will be automatically focused on, this is in line with WCAG accessibility principles/standard and is more intuitive. In the second case once a user clicks the reset password link sent. to their email they are now redirected to the update password screen where they can update their password.

Additional context

None

Aldo111 commented 1 year ago

Hi @silentworks is there a way to disable the autofocus? This messes with a page that has other content to show first/much earlier before a login/signup screen