From 5935d97d7c251c8e072acdae60b1d83054758168 Mon Sep 17 00:00:00 2001 From: Nishthajain7 Date: Sun, 8 Mar 2026 18:09:55 +0530 Subject: [PATCH] fix:Added aria description to EditableInput --- client/modules/IDE/components/EditableInput.jsx | 13 +++++++++---- .../modules/IDE/components/Header/ProjectName.jsx | 4 ++-- .../modules/User/components/CollectionMetadata.jsx | 2 ++ translations/locales/en-US/translations.json | 3 +++ 4 files changed, 16 insertions(+), 6 deletions(-) diff --git a/client/modules/IDE/components/EditableInput.jsx b/client/modules/IDE/components/EditableInput.jsx index a323903e2b..9c37165295 100644 --- a/client/modules/IDE/components/EditableInput.jsx +++ b/client/modules/IDE/components/EditableInput.jsx @@ -13,6 +13,7 @@ function EditableInput({ inputProps, onChange, disabled, + description, 'aria-label': ariaLabel }) { const [isEditing, setIsEditing] = React.useState(false); @@ -26,6 +27,10 @@ function EditableInput({ }`; const inputRef = React.useRef(); const { t } = useTranslation(); + const label = + description ?? + ariaLabel ?? + t('EditableInput.EditValue', { display: displayValue }); React.useEffect(() => { if (isEditing) { const inputElement = inputRef.current; @@ -78,9 +83,7 @@ function EditableInput({