Neova고급 SEO 플랫폼

대화상자에 접근 가능한 이름이 없음

Neova에서는 크롤링 자체에서 실행됩니다. 따로 설정할 것이 없습니다.

규칙 최종 검토: 2026년 10월 17일 · 가이드 업데이트: 2026년 7월 7일

WCAG 요구 사항이 아닌 접근성 모범 사례입니다. 이름이 없는 대화상자는 스크린 리더 사용자에게 아무 맥락 없이 열립니다. 대화상자 안의 텍스트는 이름으로 인정되지 않습니다.

해 볼 수 있는 조치

aria-labelledby가 대화상자의 헤딩을 가리키게 하거나, aria-label을 추가하세요.

Neova가 플래그를 지정하는 이유

  • 이름 없는 대화상자는 맥락 없이 열리므로, 스크린 리더 사용자는 무엇을 위한 창인지 알 수 없습니다.
  • 대화상자 안의 텍스트는 이름이 되지 않으므로 aria-labelledby나 aria-label이 필요합니다.
  • ARIA Authoring Practices의 모범 사례이며, 그 자체로 WCAG 요구 사항은 아닙니다.

출처

전체 가이드

이 부분은 현재 영어로만 제공됩니다.

Aria dialog and alertdialog must have an accessible name: how to fix it
TL;DR

Any element with role="dialog" or role="alertdialog" needs a name, or a screen reader announces "dialog" and nothing else. Point aria-labelledby at the heading and the modal introduces itself.

This check flags a modal container carrying role="dialog" or role="alertdialog" that has no accessible name. When focus lands inside a nameless dialog, assistive tech says "dialog" with no context, so the user has no idea whether they are in a cookie prompt, a delete confirmation, or a checkout step. Dialogs are also where conversions happen, so a modal a screen reader user cannot parse is a straight path to a bounced session and a lost sign-up.

Why the Name Matters More in a Dialog Than Almost Anywhere Else

A dialog is a context switch. The moment it opens, a screen reader user is torn out of the page they were reading and dropped somewhere new, usually with focus moved into the modal. In that instant the accessible name is the only orientation they get. On a normal page you can explore headings and landmarks to figure out where you are, but a modal is meant to be a small, self-contained task, and users expect it to announce itself the way a well-labeled door announces the room behind it. Miss the name and you have effectively teleported someone into an unmarked room and asked them to make a decision. For an alertdialog the stakes climb higher, because these are reserved for urgent, often destructive choices, and the whole point is that the user hears the message before they act. A nameless confirmation dialog is how a keyboard-and-audio user deletes something they never meant to touch.

A Real Failure, and the Fix

A common React or vanilla modal ships the role but forgets the name entirely:

<div role="dialog" aria-modal="true">
  <h2>Delete this project?</h2>
  <p>This action cannot be undone.</p>
  <button>Cancel</button> <button>Delete</button>
</div>

The heading already says exactly what this dialog is, so reuse it. Give the <h2> an id and reference it with aria-labelledby:

<div role="dialog" aria-modal="true" aria-labelledby="dlg-title">
  <h2 id="dlg-title">Delete this project?</h2>
  <p>This action cannot be undone.</p>
  <button>Cancel</button> <button>Delete</button>
</div>

Now, on open, the screen reader announces "Delete this project?, dialog" and the user knows precisely where they are.

Dialog vs Alertdialog, and How to Name Each

Role Use It For Preferred Name Source Also Needs
dialog Forms, pickers, general modals aria-labelledby → heading Focus trap, aria-modal
alertdialog Urgent confirmations, errors aria-labelledby → heading aria-describedby → body text
Either, no visible title Icon-only or compact prompts aria-label="…" Concise, purpose-first text

How to Detect It

  1. axe DevTools: open the modal first so it is in the DOM, then run the scan; "ARIA dialog and alertdialog nodes should have an accessible name" pinpoints the offending container.
  2. Lighthouse: run the Accessibility category with the dialog open and read the "ARIA" failures; a nameless dialog surfaces there.
  3. WAVE: trigger the modal, run WAVE, and inspect the ARIA panel for a dialog node with no associated name.
  4. Screen reader spot check: open the modal with VoiceOver or NVDA; if it announces "dialog" with no title, the name is missing.

How to Fix It

Prefer aria-labelledby pointing at the visible heading, because the name then always matches what sighted users read. Only fall back to aria-label when there is genuinely no on-screen title. For an alertdialog, add aria-describedby targeting the body copy so the warning message is announced along with the name. Make sure the id you reference actually exists and is unique, and that the dialog receives focus on open. Buttons inside the dialog have their own naming requirement, covered in buttons must have discernible text, and the same accessible-name concept extends to widgets like ARIA tooltip must have an accessible name.

A few implementation details save you from re-opening this ticket later. Reference the heading by its id even if you already render that heading visually, because the visible heading and the accessible name are two different systems and only the association guarantees they stay in sync. If your modal is portaled to the end of the <body>, which most modern component libraries do, confirm the referenced id still resolves after the portal moves the DOM node. Keep the name short and specific: "Delete this project?" beats "Confirmation," because it tells the user what they are confirming. And when a single component powers many dialogs, generate the title id dynamically so two open-and-close cycles never leave duplicate ids in the tree, which would quietly break the aria-labelledby lookup.

Frequently Asked Questions

Can I Use the Native <dialog> Element Instead?

Yes, and it is a solid choice, but it still needs a name. A native <dialog> without a title, aria-label, or aria-labelledby announces just as poorly, so name it the same way.

Which Is Better Here, aria-label or aria-labelledby?

Reach for aria-labelledby whenever a visible heading exists, since it keeps the spoken and visible names in sync. Use aria-label only when no visible title is present.

Do I Need Both a Name and aria-modal?

They solve different problems. The accessible name tells users what the dialog is; aria-modal="true" tells assistive tech to treat content behind it as inert. Ship both, plus a real focus trap.

When Should I Choose alertdialog Over dialog?

Use alertdialog for urgent, interruptive messages that need an immediate response, such as a destructive-action confirmation. For everything else, dialog is the right role.

Need a full technical audit?

Neova runs deep crawls that catch issues like this across your whole site.

내 사이트에서 찾아보기

Neova는 크롤링할 때마다 이 점검과 다른 모든 점검을 실행하고, 수정 방법을 팀을 위한 티켓으로 작성합니다.

  • Mac, Windows, Linux용 데스크톱 앱
  • 출처가 함께 있는 696개 점검 전체
  • Search Console과 Analytics 4를 읽기 전용으로 연결
  • Jira, Linear, Asana로 티켓 보내기

Neova 다운로드 Desktop Free 플랜 또는 Solo 14일 무료, 카드 불필요.

접근성 점검 전체 · 가이드 · 점검 라이브러리

작성: Neova Labs · 점검 라이브러리로 돌아가기