microsoft / accessibility-insights-web

Accessibility Insights for Web
https://accessibilityinsights.io
MIT License
820 stars 146 forks source link

<hx role="none"> is reported as heading. #7362

Open shaminder1 opened 1 month ago

shaminder1 commented 1 month ago

Describe the bug

headings tag with role="none "are tagged as headings,

To Reproduce Steps to reproduce the behavior:

  1. Open Accessibility insights for web
  2. Turn on Headings in Adhoc Tools.
  3. Check if headings tag with role="none "are tagged as headings,

CodePen repro example

Expected behavior

Heading tags with role="none" should not be detected as programmatic headings.

Screenshots

image

Context (please complete the following information)

Are you willing to submit a PR?

NA

Did you search for similar existing issues?

No

shaminder1 commented 1 month ago

By default screen readers treat content contained in as normal text (without any semantic meaning). But AI tool identifies the same as heading.