react-doctor/dialog-has-accessible-name
Dialog without accessible name
- Category: Accessibility
- Severity: warn
- Source:
oxlint-plugin-react-doctor - Framework: global
- Enabled when: react
- Default: Enabled
Validation prompt
Use this to decide whether a fired diagnostic is real or a false positive.
Confirm the reported code matches Dialog without accessible name. Check the framework context and diagnostic message before suppressing it.
Fix prompt
Use this once validation confirms the diagnostic is real.
Give every <dialog> / role="dialog" an accessible name with aria-label or aria-labelledby (referencing the dialog's title element).
Related rules
More Accessibility rules from the rules reference:
react-doctor/heading-has-content: Disallow empty headings — h1 through h6 must render accessible text content.react-doctor/html-has-lang: Require a lang attribute on the html element so screen readers use the right pronunciation rules.react-doctor/iframe-has-title: Require a unique, descriptive title attribute on iframes so assistive-tech users can identify embedded content.react-doctor/img-redundant-alt: Drop redundant words like 'image' / 'photo' / 'picture' from alt text and describe the content instead.react-doctor/interactive-supports-focus: Add tabIndex to elements that have interactive roles and event handlers.