ionic-team / ionic-team/ionic-framework

bug: ion-select with popover interface causes aria issues

未关闭
#30,410 1 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
triage
主要语言
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

Blocked aria-hidden on an element because its descendant retained focus. The focus must not be hidden from assistive technology users. Avoid using aria-hidden on a focused element or its ancestor. Consider using the inert attribute instead, which will also prevent focus. For more details, see the aria-hidden section of the WAI-ARIA specification at https://w3c.github.io/aria/#aria-hidden.
Element with focus:
Ancestor with aria-hidden:

### Expected Behavior

No aria issue

### Steps to Reproduce

Just using the ionic example given in the documentation causes the problem when copied into my app.

https://ionicframework.com/docs/api/select

### Code Reproduction URL

N/A

### Ionic Info

Ionic:

Ionic CLI : 7.2.1 (C:\Users\rolan\AppData\Roaming\npm\node_modules\@ionic\cli)
Ionic Framework : @ionic/vue 8.5.7

Capacitor:

Capacitor CLI : 7.2.0
@capacitor/android : 7.2.0
@capacitor/core : 7.2.0
@capacitor/ios : 7.2.0

Utility:

cordova-res : not installed globally
native-run : 2.0.1

System:

NodeJS : v22.14.0 (C:\Program Files\nodejs\node.exe)
npm : 11.3.0
OS : Windows 10

### Additional Information

_No response_

贡献指南

打开贡献指南

调研方向

Start with the Ionic select documentation example linked in the report and reproduce the warning using the popover interface. Trace the focus and aria-hidden behavior involving ion-select, ion-popover, and ion-radio; done means the example no longer reports a focused descendant under an aria-hidden ancestor.

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

评估

技术栈
typescript
领域
accessibility, frontend
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
35/100

把新 issue 发到你的邮箱

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