diff --git a/projects/aca-content/assets/i18n/en.json b/projects/aca-content/assets/i18n/en.json index b8d2f11d3..09677007c 100644 --- a/projects/aca-content/assets/i18n/en.json +++ b/projects/aca-content/assets/i18n/en.json @@ -621,7 +621,13 @@ "DISLIKE_BUTTON_LABEL": "Dislike", "COPY_MESSAGE": "Copied response to clipboard", "CANCEL": "Cancel", - "UPDATE": "Update" + "UPDATE": "Update", + "ACCESSIBILITY": { + "CANCEL_BUTTON": "Cancel editing of the query button", + "UPDATE_BUTTON": "Update query button", + "EDIT_BUTTON": "Edit query button", + "TEXT_AREA": "Update query text area" + } }, "AGENTS_BUTTON": { "LABEL": "Ask Discovery", diff --git a/projects/aca-content/src/lib/components/knowledge-retrieval/search-ai/search-ai-results/search-ai-results.component.html b/projects/aca-content/src/lib/components/knowledge-retrieval/search-ai/search-ai-results/search-ai-results.component.html index b262f43f3..91c4badbd 100644 --- a/projects/aca-content/src/lib/components/knowledge-retrieval/search-ai/search-ai-results/search-ai-results.component.html +++ b/projects/aca-content/src/lib/components/knowledge-retrieval/search-ai/search-ai-results/search-ai-results.component.html @@ -33,9 +33,11 @@ matInput class="aca-search-ai-results-container-wrapper-form-field-input" data-automation-id="toggle-edit-input-textarea" - [attr.aria-label]="'SEARCH.INPUT.ARIA-LABEL' | translate" + #editTextArea + [attr.aria-label]="'KNOWLEDGE_RETRIEVAL.SEARCH.RESULTS_PAGE.ACCESSIBILITY.TEXT_AREA' | translate" [(ngModel)]="searchQuery" (keyup.enter)="updateInput()" + (keyup.escape)="cancelUpdateInput()" [placeholder]="'SEARCH.INPUT.PLACEHOLDER' | translate" autocomplete="off" > @@ -45,7 +47,7 @@