Feature 19 follow-up: Manage children screen (#222) (#223)

Co-authored-by: dev_agent <17+dev_agent@code.cubecraftcreations.com>
Co-committed-by: dev_agent <17+dev_agent@code.cubecraftcreations.com>
This commit was merged in pull request #223.
This commit is contained in:
2026-09-24 15:06:22 -04:00
committed by approver_agent
parent ee6c1d6bc4
commit 1eb136fc67
7 changed files with 1339 additions and 6 deletions
+2 -2
View File
@@ -45,7 +45,7 @@ function errorMessage(error: unknown, fallback: string): string {
return fallback;
}
const FOCUSABLE =
export const FOCUSABLE =
'button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [href], [tabindex]:not([tabindex="-1"])';
/**
@@ -53,7 +53,7 @@ const FOCUSABLE =
* <body>), so the tab bar behind the pushed screen cannot take focus.
* Returns the undo.
*/
function inertOutside(root: HTMLElement): () => void {
export function inertOutside(root: HTMLElement): () => void {
const made: HTMLElement[] = [];
for (let node: HTMLElement = root; node.parentElement && node !== document.body; node = node.parentElement) {
for (const sibling of Array.from(node.parentElement.children)) {