Code Room
Vibe codingMediumvc-g549
Subject Ai code reviewLevel Mid–Senior~15 minCommon in Algorithms & data structures interviewsIndustries Software development

Question

An AI agent built this signup field with inline validation. Sighted users see the red error fine. Explain why screen-reader and some low-vision users can't complete this form, and fix it.

jsx
function EmailField({ value, onChange, error }) {  return (    <div className="field">      <div className="label">Email</div>      <input type="text" value={value} onChange={onChange} placeholder="Email" />      {error && <div className="error-text">{error}</div>}    </div>  );}
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.

Describe your solution

Vibe coding: describe the solution in plain language (or narrate it) and the coach grades your approach. Generating runnable code from your description is coming next.

Run or narrate your approach, then ask the coach.