1
0
mirror of https://github.com/jaandrle/deka-dom-el synced 2025-07-01 12:22:15 +02:00

🐛 npx-hint

[Scrollable region must have keyboard access | Axe Rules | Deque University | Deque Systems](https://dequeuniversity.com/rules/axe/4.10/scrollable-region-focusable?application=axeAPI)
This commit is contained in:
2025-03-07 10:57:17 +01:00
parent 7f4787d704
commit e9d75a4631
2 changed files with 2 additions and 2 deletions

View File

@ -194,7 +194,7 @@ export function code({ id, src, content, language= "js", className= host.slice(1
registerClientPart(page_id);
dataJS= "todo";
}
return el("div", { id, className, dataJS }).append(
return el("div", { id, className, dataJS, tabIndex: 0 }).append(
el("code", { className: "language-"+language, textContent: content.trim() })
);
}