From dd048f5353df1dfe9dcec2a46f4e940745014b35 Mon Sep 17 00:00:00 2001 From: Revanshu Paliwal Date: Thu, 22 Sep 2022 14:39:39 +0200 Subject: [PATCH] SONAR-16906 [893104] Form elements must have labels --- .../src/main/js/components/issue/popups/CommentForm.tsx | 1 + sonar-core/src/main/resources/org/sonar/l10n/core.properties | 1 + 2 files changed, 2 insertions(+) diff --git a/server/sonar-web/src/main/js/components/issue/popups/CommentForm.tsx b/server/sonar-web/src/main/js/components/issue/popups/CommentForm.tsx index 1eae2eb9854..e6edbaac200 100644 --- a/server/sonar-web/src/main/js/components/issue/popups/CommentForm.tsx +++ b/server/sonar-web/src/main/js/components/issue/popups/CommentForm.tsx @@ -44,6 +44,7 @@ export default function CommentForm(props: CommentFormProps) { autoFocus={true} style={{ resize: 'vertical' }} placeholder={placeholder} + aria-label={translate('issue.comment.enter_comment')} onChange={(event: React.ChangeEvent) => setEditComment(event.target.value) } diff --git a/sonar-core/src/main/resources/org/sonar/l10n/core.properties b/sonar-core/src/main/resources/org/sonar/l10n/core.properties index 1ef5a3392ac..b0ebf52877e 100644 --- a/sonar-core/src/main/resources/org/sonar/l10n/core.properties +++ b/sonar-core/src/main/resources/org/sonar/l10n/core.properties @@ -827,6 +827,7 @@ issue.assign.to_me=to me issue.quick_fix_available_with_sonarlint=Quick fix available in {link} issue.comment.add_comment=Add Comment issue.comment.add_comment.cancel=Cancel adding comment +issue.comment.enter_comment=Enter Comment issue.comment.formlink=Comment issue.comment.formlink.plural=comments issue.comment.submit=Comment -- 2.39.5