Code RoomModal accessibility failures
MediumPrep Room Coding #4079

Modal accessibility failures

Vibe & agenticAlgorithms & data structuresMid–Senior~17 min

An AI built this modal dialog. It looks correct visually, but keyboard and screen-reader users can't use it properly. Name the accessibility problems.

Implement
missing_dialog_requirements(implemented: list[str]) → list[str]
Examples
in[[]]out["aria-labelledby","aria-modal","button-close","escape-closes","focus-on-open","focus-restore","focus-trap","role-dialog"]
in[["aria-labelledby","aria-modal","button-close","escape-closes","focus-on-open","focus-restore","focus-trap","role-dialog"]]out[]
in[["role-dialog","aria-modal"]]out["aria-labelledby","button-close","escape-closes","focus-on-open","focus-restore","focus-trap"]
What a strong answer looks like

Treat the AI’s output as a draft to verify, not an answer to trust. Name the specific flaw and the input that triggers it, say how you’d catch it (tests, edge cases, reading critically), and how you’d re-prompt or decompose to get it right.

0:00 of about 17 min

Vibe & agentic: describe the solution in plain language (or narrate it) and the coach grades your approach.

Which questions mattered is sealed until you submit. Telling you now would just be handing over the edge cases.