ionic-team / ionic-team/ionic-framework

bug: Modals do not support switch access (a11y) under Android

未关闭
#29,806 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
package: core type: bug
主要语言
TypeScript
星标
52.7k
派生
13.3k
平均合并
1 天 15 小时
30 天内合并 PR
51

描述

### Prerequisites

- [X] I have read the [Contributing Guidelines](https://github.com/ionic-team/ionic-framework/blob/main/docs/CONTRIBUTING.md#creating-an-issue).
- [X] I agree to follow the [Code of Conduct](https://ionicframework.com/code-of-conduct).
- [X] I have searched for [existing issues](https://github.com/ionic-team/ionic-framework/issues) that already report this problem, without success.

### Ionic Framework Version

v8.x

### Current Behavior

The _ion-menu_ component and also other modals (i.e. Controller Action Sheets) are not recognized by the Android Switch Access scanner.

For demonstration, I have created a demo app via the _sidemenu_ template.
The items within the _ion-menu_ component cannot be selected via Switch Access.

However, when I open the _UI Components_ link in the demo app, the side-menu on the HTML page is accessible via Switch Access. (https://ionicframework.com/docs/components in Chrome browser)

### Expected Behavior

Menu items should be selectable by Android Switch Access.

### Steps to Reproduce

1. Enable Switch Access via _Settings > Accessibility > Switch Access_ on your Android device
2. Open the demo project.
3. Run on Android device.
4. Open the side menu via _Switch Access_ -> the burger menu button is accessible.
5. The side menu is visible, but no menu-items are accessible

### Code Reproduction URL

https://github.com/gerngroh/a11y-switch-access/

### Ionic Info

ionic info
[ERROR] Error loading @ionic/angular package.json: Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './package' is
not defined by "exports" in
/Users/gerngroh/Documents/Entwicklung/ionic-demos/a11y-switch-access/a11y-switch-access/node_modules/@ionic/angular/package.json

Ionic:

Ionic CLI : 5.4.16 (/Users/gerngroh/.nvm/versions/node/v18.18.0/lib/node_modules/ionic)
Ionic Framework : not installed
@angular-devkit/build-angular : 18.2.1
@angular-devkit/schematics : 18.2.1
@angular/cli : 18.2.1
@ionic/angular-toolkit : 11.0.1

Capacitor:

Capacitor CLI : 6.1.2
@capacitor/core : 6.1.2

Utility:

cordova-res : not installed
native-run : 2.0.1

System:

NodeJS : v18.18.0 (/Users/gerngroh/.nvm/versions/node/v18.18.0/bin/node)
npm : 9.8.1
OS : macOS Unknown

### Additional Information

_No response_

贡献指南

打开贡献指南

调研方向

Start with the linked reproduction app and test the ion-menu and Controller Action Sheets using Android Switch Access. Trace the Ionic entry points for these components and compare their menu-item behavior with the accessible HTML menu described in the issue; done means the items are selectable through Switch Access on an Android device.

由索引模型根据 Issue 内容生成。

评估

技术栈
android, angular, typescript
领域
accessibility, frontend, mobile
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
活跃
描述清晰度
基本清楚
新手友好度
52/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。