pwa-builder / PWABuilder

The simplest way to create progressive web apps across platforms and devices. Start here. This repo is home to several projects in the PWABuilder family of tools.
https://docs.pwabuilder.com
Other
2.54k stars 273 forks source link

[PWA Builder]: Nested Interactive Controls Unannounced by Screen Readers. #4758

Open Anshi0420 opened 1 week ago

Anshi0420 commented 1 week ago

What happened?

There are nested interactive controls (such as buttons or links) within another interactive control (like a dropdown menu or modal dialog).

How do we reproduce the behavior?

Repro Steps:

  1. Open the given PWA Builder URL in Anaheim dev browser.
  2. Run the Fast pass from the AI4W.
  3. Observe the issue.

What do you expect to happen?

Interactive controls should not be nested within each other to ensure they are properly announced and accessible to screen readers and other assistive technologies.

What environment were you using?

OS Build: Windows 11 Enterprise Insider Preview 24H2 (26120.461) Edge Browser: Version 123.0.2400.1 (Official build) dev (64-bit) URL: https://www.pwabuilder.com/reportcard?site=https://webboard.app Tool: AI4W

Additional context

Element path: app-index,app-report,#todo-detail,#header

Snippet:

**How to fix:** Fix any of the following: Element has focusable descendants **User Impact:** When interactive controls are nested, screen readers may not announce them correctly or users may experience difficulties in navigating and interacting with these controls using assistive technologies. **WCAG Reference:** https://www.w3.org/WAI/WCAG22/Understanding/name-role-value **Attachments:** ![image](https://github.com/pwa-builder/PWABuilder/assets/117908911/72a3d900-2054-4e36-ae49-4918ff666fb0) ![image](https://github.com/pwa-builder/PWABuilder/assets/117908911/9920d750-a634-4234-93a6-72771841ad87) ![image](https://github.com/pwa-builder/PWABuilder/assets/117908911/0e0c4aa8-9d60-46f3-9453-af886e56e729)
microsoft-github-policy-service[bot] commented 11 hours ago

This issue has been marked as "needs attention 👋" since it has not been triaged for 7 days. Please triage the issue .