Modal
النافذة المنبثقة (Modal)
GLS-000132
Definition
A pop-up window that appears over the main content, requiring the user to interact with it before continuing.
نافذة منبثقة تظهر فوق المحتوى الرئيسي، تتطلب من المستخدم التفاعل معها قبل المتابعة.
Why It Matters
Modals are used throughout 404Fault for confirmations and forms. A poorly implemented modal that traps keyboard users or breaks focus is a bad UX.
تُستخدم المودالات في 404Fault للتأكيدات والنماذج. مودال مُطبَّق بشكل سيئ يحبس مستخدمي لوحة المفاتيح أو يكسر التركيز هو تجربة مستخدم سيئة.
Full Definition
Example Usage
“Clicking 'Add Note' on a glossary term opens a modal with a text area. The user types their note, clicks Save, and the modal closes.”
“النقر على 'إضافة ملاحظة' على مصطلح في الغلوساري يفتح مودال بمنطقة نص. يكتب المستخدم ملاحظته وينقر حفظ ويُغلَق المودال.”
AI Builder Tips
Avoid these mistakes when using Modal:
Not trapping focus inside the modal (Tab key escapes to page background)
Opening a modal that's impossible to close on mobile (no X button, Escape doesn't work)
Sign in to unlock guided AI explanations from AI Teacher.
Generate a Prompt
Copy this prompt and use it directly with any AI model — no setup needed.
Help me build a project using Modal. Explain: 1. What is Modal and why it matters 2. The core architecture and required tools 3. Step-by-step implementation plan 4. Common mistakes to avoid: Not trapping focus inside the modal (Tab key escapes to page background), Opening a modal that's impossible to close on mobile (no X button, Escape doesn't work) 5. Best practices and production tips