{"data":{"slug":"github-thedaviddias-front-end-checklist-skills-aria-dialog-name-73c53c4c7556","title":"Ensure Dialogs Have an Accessible Name","summary":"Provide a descriptive accessible name for dialog and alertdialog elements using `aria-labelledby` or `aria-label` to ensure screen readers announce their purpose clearly when they open.","url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-aria-dialog-name-73c53c4c7556","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-thedaviddias-front-end-checklist-skills-aria-dialog-name-73c53c4c7556","markdown_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-aria-dialog-name-73c53c4c7556.md","download_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-aria-dialog-name-73c53c4c7556\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Before applying `aria-labelledby` or `aria-label`, ensure the dialog element has a visible title or header for consistency with visual users. Verify the accessible name using browser accessibility tools or screen readers.","instructions":"---\nname: aria-dialog-name\ndescription: \"Use when reviewing rendered HTML, interactive components, or design-system patterns related to Ensure dialogs have an accessible name. Check native semantics first, then inspect keyboard behavior, focus flow, accessible names, and screen-reader output where relevant.\"\nmetadata:\n  category: accessibility\n  priority: medium\n  difficulty: intermediate\n  estimatedTime: \"10\"\n  source: frontendchecklist.io\n  url: https:\/\/frontendchecklist.io\/rules\/accessibility\/aria-dialog-name\n---\n\n# Ensure dialogs have an accessible name\n\nWhen a dialog opens, screen readers should announce its purpose immediately so users know why their focus has shifted and what information is required.\n\n## Quick Reference\n\n- All dialog and alertdialog elements must have a descriptive label\n- Use `aria-labelledby` to point to a title or `aria-label` for a direct string\n- Helps users understand the context and purpose of the modal\n\n## Check\n\nVerify that every element with `role=\"dialog\"` or `role=\"alertdialog\"` has an accessible name.\n\n## Fix\n\nProvide an accessible name for the dialog using `aria-labelledby` (pointing to the header) or `aria-label`.\n\n## Explain\n\nExplain why naming dialogs is crucial for orienting screen reader users when modals appear.\n\n## Code Review\n\nReview the rendered markup and interactive states that affect Ensure dialogs have an accessible name. Flag exact elements, roles, labels, focus behavior, or keyboard interactions that violate the rule, and note how to verify the fix with browser accessibility tooling or assistive tech.\n\n---\n\nFor full implementation details, code examples, and framework-specific guidance,\nsee `references\/rule.md`.\n\nRule page: https:\/\/frontendchecklist.io\/rules\/accessibility\/aria-dialog-name\n","use_cases":["Reviewing HTML elements for accessibility compliance","Testing interactive components for screen reader compatibility","Auditing design-system patterns for accessibility standards"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/thedaviddias\/Front-End-Checklist\/blob\/e8d14d049010e2ce25afcd5e8609dfcbbe63e47e\/skills\/aria-dialog-name\/SKILL.md","source_commit":"e8d14d049010e2ce25afcd5e8609dfcbbe63e47e","license":null,"version":null,"listing_approved_at":"2026-11-23","created_at":"2026-11-22T15:08:05.000000Z","updated_at":"2026-11-23T04:54:44.000000Z","seo_title":"Ensure Dialogs Have an Accessible Name","seo_description":"Ensure dialogs have an accessible name to improve accessibility for screen reader users. Use `aria-labelledby` or `aria-label` for clear labeling.","seo_keywords":["accessible dialog name","aria-label dialog","screen reader accessibility","dialog accessibility check"]}}