From 13f451d8a1c04ff69e0c7b83befd05ca85a49281 Mon Sep 17 00:00:00 2001 From: Marc Gavanier Date: Tue, 28 Nov 2023 12:28:53 +0100 Subject: [PATCH] fix(i18n): missing aria for search combobox --- .../search-field/search-field.component.html | 12 +++++++++--- ...lieu-mediation-numerique-list-item.component.html | 4 ++-- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/features/adresse/components/search-field/search-field.component.html b/src/features/adresse/components/search-field/search-field.component.html index 3b8afd9a1..539ce4ffd 100644 --- a/src/features/adresse/components/search-field/search-field.component.html +++ b/src/features/adresse/components/search-field/search-field.component.html @@ -12,7 +12,11 @@ autocomplete="off" aria-describedby="search" aria-haspopup="true" + aria-autocomplete="list" + aria-controls="search-result" + [attr.aria-activedescendant]="(dropdownPane.expanded$ | async) ? 'search-result-' + dropdownPane.activeIndex : null" formControlName="search" + role="combobox" [attr.aria-describedby]="isNotFound ? 'search-desc-error' : null" [attr.aria-expanded]="dropdownPane.expanded$ | async" (input)="search.next(searchInput.value); searchInput.value.length <= 2 ? dropdownPane.reduce() : dropdownPane.expand()" @@ -29,16 +33,19 @@