Accessibility: add focus trapping, debug tab cycling, UI tweaks for mobile browser

This commit is contained in:
Pieter Vander Vennet 2023-12-07 21:57:20 +01:00
parent 307549b593
commit 8ae4d810d6
19 changed files with 123 additions and 77 deletions

View file

@ -1658,7 +1658,6 @@ In the case that MapComplete is pointed to the testing grounds, the edit will be
}
const child = <HTMLElement>childs.item(0)
if (child === null) {
console.log("Focussing on child element: no child element found for", el)
return undefined
}
if (
@ -1668,7 +1667,6 @@ In the case that MapComplete is pointed to the testing grounds, the edit will be
) {
child.setAttribute("tabindex", "-1")
}
console.log("Focussing on", child)
child?.focus()
})
}