From c4d557583d3f270508a308ba8fee342a42a547b9 Mon Sep 17 00:00:00 2001 From: Mathias Elle Date: Fri, 13 Nov 2026 08:43:53 +0100 Subject: [PATCH] fix(toolbar): exclude elements with negative tabindex from tab order audit Elements with tabindex below zero (e.g. -2, or -1 on links) are not reachable via the Tab key but were still listed in the tab order overlay. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- src/view/frontend/web/js/toolbar/audits/tab-order.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/view/frontend/web/js/toolbar/audits/tab-order.js b/src/view/frontend/web/js/toolbar/audits/tab-order.js index 9b271749..3bc8b316 100644 --- a/src/view/frontend/web/js/toolbar/audits/tab-order.js +++ b/src/view/frontend/web/js/toolbar/audits/tab-order.js @@ -240,6 +240,7 @@ export default { document.querySelectorAll(FOCUSABLE_SELECTOR), ) .filter((el) => !el.closest(".mageforge-toolbar")) + .filter((el) => getTabIndex(el) >= 0) .filter(isVisible); if (allFocusable.length === 0) {