1
0
mirror of https://github.com/jaandrle/deka-dom-el synced 2025-04-01 19:55:53 +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:
Jan Andrle 2025-03-07 10:57:17 +01:00
parent 7f4787d704
commit e9d75a4631
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
import { JSDOM } from "jsdom";
const html_default= "<!doctype html><html><head><meta charset=\"utf-8\"></head><body></body></html>";
const html_default= "<!doctype html><html lang=\"en\"><head><meta charset=\"utf-8\"></head><body></body></html>";
let keys= [];
let dom= null;
import { relative } from 'node:path';

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() })
);
}