Code RoomCookie banner accessibility and consent
MediumPrep Room Coding #4447

Cookie banner accessibility and consent

Vibe & agenticAlgorithms & data structuresMid–Senior~16 min

An AI assistant generated this React component for a dismissible cookie banner. It renders and looks fine in the design review. What's missing before this ships, and who does it hurt?

Implement
audit_click_targets(elements: list[str]) → list[str]
Examples
in[["div||no||We use cookies to improve your experience.","div||yes||Accept","div||yes||"]]out["1:no-keyboard-focus","1:no-semantic-role","2:no-keyboard-focus","2:no-semantic-role","2:no-accessible-name"]
in[["button||yes||Accept","button||yes||Dismiss"]]out[]
in[["div|button|yes|0|"]]out["0:no-accessible-name"]
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 16 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.