From 0be8fc9b97bf801509c1df018289f2fc77b35589 Mon Sep 17 00:00:00 2001 From: "Florine W. Dekker" Date: Thu, 24 Nov 2022 18:17:47 +0100 Subject: [PATCH] Restore tab index for linkless nav elements --- package.json | 2 +- src/main/js/Template.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index d441a19..a519a2f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@fwdekker/template", - "version": "3.3.8", + "version": "3.3.9", "description": "The base template for pages on fwdekker.com.", "author": "Florine W. Dekker", "license": "MIT", diff --git a/src/main/js/Template.ts b/src/main/js/Template.ts index b7958f5..542c457 100644 --- a/src/main/js/Template.ts +++ b/src/main/js/Template.ts @@ -134,6 +134,7 @@ function unpackEntry(entry: any, parentPath: string = "/", highlightPath?: strin const a = document.createElement("a"); a.innerText = entry.name; + a.tabIndex = 0; if (hasChildren) { const depth = parentPath.split("/").length - 2; // -1 because count parts, then another -1 because of leading / a.innerText += ` ${depth === 0 ? "▾" : "▸"}`;