Bug Description
The "Join the waitlist" modal in src/components/SummerOfAI.jsx can only
be dismissed by clicking the ✕ button. Pressing the Escape key has no
effect. This is a standard accessibility expectation — all modals should
support Escape to close.
Steps to Reproduce
- Go to the Summer of AI section
- Click "Join the waitlist →"
- When the modal opens, press the
Escape key
- Modal stays open — nothing happens
Expected Behavior
Pressing Escape should close the modal, the same as clicking ✕
Proposed Fix
Add a useEffect in SummerOfAI.jsx:
useEffect(() => {
const handleKey = (e) => { if (e.key === 'Escape') setBtn(false) }
if (btn) window.addEventListener('keydown', handleKey)
return () => window.removeEventListener('keydown', handleKey)
}, [btn])
Labels
bug good first issue
Bug Description
The "Join the waitlist" modal in
src/components/SummerOfAI.jsxcan onlybe dismissed by clicking the
✕button. Pressing theEscapekey has noeffect. This is a standard accessibility expectation — all modals should
support
Escapeto close.Steps to Reproduce
EscapekeyExpected Behavior
Pressing
Escapeshould close the modal, the same as clicking✕Proposed Fix
Add a
useEffectinSummerOfAI.jsx:Labels
buggood first issue