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 ? "▾" : "▸"}`;