test: add browser acceptance matrix

This commit is contained in:
NuklearRabbit
2026-07-29 18:49:08 +02:00
parent a0733875c4
commit 1e86afb7d9
9 changed files with 340 additions and 47 deletions
+5 -1
View File
@@ -289,6 +289,11 @@ function enhanceRenderedUi() {
if (!control.id) control.id = `forgeflow-field-${index}`;
label.htmlFor = control.id;
});
document.querySelectorAll("input:not([aria-label]), select:not([aria-label]), textarea:not([aria-label])").forEach((control) => {
if (control.labels?.length) return;
const fallback = String(control.placeholder || control.name || control.id || "Form control").replaceAll("-", " ").trim();
control.setAttribute("aria-label", fallback.charAt(0).toUpperCase() + fallback.slice(1));
});
}
function render() {
@@ -316,4 +321,3 @@ function render() {
document.querySelector("#palette-input")?.focus(),
);
}