From 7892630e3bd4006e7f5dcd95d5e378c8a4d7e8f7 Mon Sep 17 00:00:00 2001 From: Fringg Date: Thu, 2 Apr 2026 07:16:00 +0300 Subject: [PATCH] fix: add key prop to AnimatePresence, accessibility labels, remove hardcoded fallback - Added key="email-link-form" on motion.div inside AnimatePresence for proper exit animations - Added htmlFor/id pairs on all three label+input groups for screen reader accessibility - Replaced hardcoded "your@email.com" placeholder with neutral format - Removed hardcoded English fallback from t('profile.invalidEmail') --- src/pages/ConnectedAccounts.tsx | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/src/pages/ConnectedAccounts.tsx b/src/pages/ConnectedAccounts.tsx index 824b5c4..e89e0a6 100644 --- a/src/pages/ConnectedAccounts.tsx +++ b/src/pages/ConnectedAccounts.tsx @@ -430,7 +430,7 @@ export default function ConnectedAccounts() { setEmailSuccess(null); if (!emailValue.trim() || !isValidEmail(emailValue.trim())) { - setEmailError(t('profile.invalidEmail', 'Please enter a valid email address')); + setEmailError(t('profile.invalidEmail')); return; } if (!emailPassword || emailPassword.length < 8) { @@ -675,6 +675,7 @@ export default function ConnectedAccounts() { {emailFormOpen && (
- + setEmailValue(e.target.value)} - placeholder="your@email.com" + placeholder="email@example.com" className="input" autoComplete="email" />
- + setEmailPassword(e.target.value)} @@ -710,8 +717,11 @@ export default function ConnectedAccounts() {

{t('profile.passwordHint')}

- + setEmailConfirmPassword(e.target.value)}