diff --git a/src/i18n/en-US.json b/src/i18n/en-US.json index 01dcaa1cdb2..01b1f5181ad 100644 --- a/src/i18n/en-US.json +++ b/src/i18n/en-US.json @@ -270,6 +270,8 @@ "authLoginTitle": "Log in", "authPlaceholderEmail": "Email", "authPlaceholderPassword": "Password", + "togglePasswordShowLabel": "Show password", + "togglePasswordHideLabel": "Hide password", "authPostedResend": "Resend to {email}", "authPostedResendAction": "No email showing up?", "authPostedResendDetail": "Check your email inbox and follow the instructions.", diff --git a/src/script/auth/component/AccountForm.tsx b/src/script/auth/component/AccountForm.tsx index c20b3aa7e86..4da4ad4f8d2 100644 --- a/src/script/auth/component/AccountForm.tsx +++ b/src/script/auth/component/AccountForm.tsx @@ -248,6 +248,7 @@ const AccountFormComponent = ({ placeholder={t('accountForm.passwordPlaceholder')} pattern={ValidationUtil.getNewPasswordPattern(Config.getConfig().NEW_PASSWORD_MINIMUM_LENGTH)} data-uie-name="enter-password" + togglePasswordBtnLabel={t('passwordToggleBtn')} /> {t('accountForm.passwordHelp', {minPasswordLength: String(Config.getConfig().NEW_PASSWORD_MINIMUM_LENGTH)})} @@ -269,6 +270,7 @@ const AccountFormComponent = ({ placeholder={t('accountForm.confirmPasswordPlaceholder')} pattern={`^${registrationData.password?.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')}$`} data-uie-name="enter-confirm-password" + togglePasswordBtnLabel={t('passwordToggleBtn')} /> diff --git a/src/script/auth/component/BackButton.tsx b/src/script/auth/component/BackButton.tsx index 31284face23..3bdf333bbb0 100644 --- a/src/script/auth/component/BackButton.tsx +++ b/src/script/auth/component/BackButton.tsx @@ -27,12 +27,14 @@ export const BackButton = () => { const navigate = useNavigate(); return ( - navigate(-1)} - direction="left" - data-uie-name="go-index" aria-label={t('createPersonalAccount.goBack')} - color={COLOR.TEXT} - /> + data-uie-name="go-index" + css={{background: 'none', border: 'none', cursor: 'pointer'}} + > +