From ca26edccd480134c792a0b8b4992a5a01d90998a 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 | 16 +++++++++++++--- .../IDE/components/Header/ProjectName.jsx | 4 ++-- .../User/components/CollectionMetadata.jsx | 2 ++ translations/locales/en-US/translations.json | 3 +++ 4 files changed, 20 insertions(+), 5 deletions(-) diff --git a/client/modules/IDE/components/EditableInput.jsx b/client/modules/IDE/components/EditableInput.jsx index a323903e2b..7d0c2aeb38 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,14 @@ function EditableInput({ }`; const inputRef = React.useRef(); const { t } = useTranslation(); + const inputLabel = + description ?? + ariaLabel ?? + t('EditableInput.EditValue', { display: displayValue }); + const buttonLabel = + ariaLabel ?? + description ?? + t('EditableInput.EditValue', { display: displayValue }); React.useEffect(() => { if (isEditing) { const inputElement = inputRef.current; @@ -78,9 +87,7 @@ function EditableInput({