Skip to content

Commit

Permalink
fix: update password placeholder prop (#242)
Browse files Browse the repository at this point in the history
* changed placeholder prop

* Add changeset

---------

Co-authored-by: Andrew Smith <[email protected]>
  • Loading branch information
Hallidayo and silentworks authored Jan 4, 2024
1 parent a639626 commit ac80a29
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
7 changes: 7 additions & 0 deletions .changeset/lemon-eyes-walk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@supabase/auth-ui-svelte': patch
'@supabase/auth-ui-react': patch
'@supabase/auth-ui-solid': patch
---

fix: update password placeholder prop
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function UpdatePassword({
<Input
id="password"
name="password"
placeholder={labels?.password_label}
placeholder={labels?.password_input_placeholder}
type="password"
autoFocus
onChange={(e: React.ChangeEvent<HTMLInputElement>) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ function UpdatePassword(props: {
id="password"
name="password"
autofocus
placeholder={props.i18n?.update_password?.password_label}
placeholder={
props.i18n?.update_password?.password_input_placeholder
}
type="password"
onkeyup={(e) => setPassword(e.currentTarget.value)}
appearance={props.appearance}
Expand Down
6 changes: 4 additions & 2 deletions packages/svelte/src/lib/Auth/interfaces/UpdatePassword.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,16 @@
type="password"
name="password"
autofocus
placeholder={i18n?.update_password?.password_label}
placeholder={i18n?.update_password?.password_input_placeholder}
bind:value={password}
autocomplete="password"
{appearance}
/>
</div>
<Button type="submit" color="primary" {loading} {appearance}>
{loading ? i18n?.update_password?.loading_button_label : i18n?.update_password?.button_label}
{loading
? i18n?.update_password?.loading_button_label
: i18n?.update_password?.button_label}
</Button>
</Container>

Expand Down

0 comments on commit ac80a29

Please sign in to comment.