From d78bd846486b999dd006b85c0ddf0f6695028b20 Mon Sep 17 00:00:00 2001 From: Vaggelis Yfantis Date: Wed, 18 Oct 2023 11:28:32 +0300 Subject: [PATCH] fix(clerk-js): Add localization for password input in SignInFactorOnePasswordCard component (#1909) * fix(clerk-js): Add localization for password input in SignInFactorOnePasswordCard * chore(repo): Adds changeset --- .changeset/olive-pants-hide.md | 5 +++++ .../src/ui/components/SignIn/SignInFactorOnePasswordCard.tsx | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/olive-pants-hide.md diff --git a/.changeset/olive-pants-hide.md b/.changeset/olive-pants-hide.md new file mode 100644 index 0000000000..d3973e7328 --- /dev/null +++ b/.changeset/olive-pants-hide.md @@ -0,0 +1,5 @@ +--- +'@clerk/clerk-js': patch +--- + +Added `formFieldInputPlaceholder__password` to the placeholder of the password input in the `` component diff --git a/packages/clerk-js/src/ui/components/SignIn/SignInFactorOnePasswordCard.tsx b/packages/clerk-js/src/ui/components/SignIn/SignInFactorOnePasswordCard.tsx index d15aa68c66..a6cb43b79a 100644 --- a/packages/clerk-js/src/ui/components/SignIn/SignInFactorOnePasswordCard.tsx +++ b/packages/clerk-js/src/ui/components/SignIn/SignInFactorOnePasswordCard.tsx @@ -24,6 +24,7 @@ const usePasswordControl = (props: SignInFactorOnePasswordProps) => { const passwordControl = useFormControl('password', '', { type: 'password', label: localizationKeys('formFieldLabel__password'), + placeholder: localizationKeys('formFieldInputPlaceholder__password'), }); return {