From e8e3a30984b6057a22f9bf155b7335b73b8c651d Mon Sep 17 00:00:00 2001 From: Stephanie Leary Date: Tue, 4 Oct 2022 15:37:23 -0500 Subject: [PATCH] LP1828468 Keyboard navigation for main navbar In the main navbar, all items except the home icon are unreachable using only a keyboard. This includes the logout/change operator menu on the far right. This is caused by the lack of an href attribute on the tags, which prevents the link from having a focus state. This patch adds tabindex="0" to the parent menu items and the submenu items that use (click) or routerLink. Submenu items are also given the ngbDropdownItem directive, which allows up/down arrow navigation within submenus. The patch does not include CSS to make the focus state prettier; a separate patch for style is forthcoming. Related: Bug #1814978 Signed-off-by: Stephanie Leary Signed-off-by: Galen Charlton --- Open-ILS/src/eg2/src/app/staff/nav.component.html | 158 +++++++++++----------- 1 file changed, 79 insertions(+), 79 deletions(-) diff --git a/Open-ILS/src/eg2/src/app/staff/nav.component.html b/Open-ILS/src/eg2/src/app/staff/nav.component.html index ab959cae36..a850ec314d 100644 --- a/Open-ILS/src/eg2/src/app/staff/nav.component.html +++ b/Open-ILS/src/eg2/src/app/staff/nav.component.html @@ -13,21 +13,21 @@