EN, Change language
Englishالعربية
OM-061

Ensure the dialog heading is announced by screen readers, using semantic HTML for headings and buttons.

The requirement (from the design system site)

Ensure the dialog heading is announced by screen readers, using semantic HTML for headings and buttons.

Why it matters to users

When a dialog opens, a screen-reader user needs to hear its heading first to know whether it is a payment confirmation or a deletion warning. Without a linked heading they hear loose buttons and do not know what they are agreeing to.

How to fix it

Give each dialog a real heading element and point aria-labelledby at it, or use gup-dialog. Then scan again.

How we measure it

Dialogs present in the DOM, open or closed (dialog, role=dialog/alertdialog, aria-modal, gup-dialog, Bootstrap .modal) contain a heading and have aria-labelledby pointing to it; aria-label alone does not pass. gup-dialog passes. The same dialog on every page counts once. No dialog markup = not measured (dialogs often appear only after a click).

The rule on the design system site

Related rules

Dialog heading announced · Oman OM-061 | xfix