test: add browser acceptance matrix
This commit is contained in:
@@ -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(),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user