From c183585c80a506208eef4dfe09fbd780d2f0d4b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Gonz=C3=A1lez?= Date: Tue, 12 Dec 2023 00:54:27 +0000 Subject: [PATCH] [FIX] web: add missing ARIA attributes to command palette Since searches in the home screen are now handled by the command palette, some ARIA attributes are required for assistive technologies to know what is the currently-selected result. That because the actual focus is always on the search box, while the actually-selected result is highlighted by toggling classes, which makes not possible anymore to know what is the selected result for e.g. screen reader users. For more info, see original implementation on enterprise's home menu on [1]. This commit is just re-applying such changes here. [1] odoo/enterprise#14511 closes odoo/odoo#152147 X-original-commit: 9764e6f7fe39a10f3b04e1764110d8c274d0431a Related: odoo/enterprise#55562 Signed-off-by: Pierre Paridans (app) --- .../static/src/core/commands/command_palette.xml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/addons/web/static/src/core/commands/command_palette.xml b/addons/web/static/src/core/commands/command_palette.xml index 24c7510cd29..54b45964a95 100644 --- a/addons/web/static/src/core/commands/command_palette.xml +++ b/addons/web/static/src/core/commands/command_palette.xml @@ -6,20 +6,28 @@
-
-
+
+