Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

组件需要支持无障碍 #14932

Closed
labubu9527 opened this issue Dec 5, 2023 · 1 comment
Closed

组件需要支持无障碍 #14932

labubu9527 opened this issue Dec 5, 2023 · 1 comment
Labels
enhancement New feature or request T-h5 Target - 编译到 H5 to be closed

Comments

@labubu9527
Copy link

这个特性解决了什么问题?

目前taro提供的基础组件里只是部分组件支持了ariaLabel、ariaRole,并且只是针对少部分小程序端支持。而针对H5端,目前仅有Image可以通过nativeProps来变相实现无障碍的支持。期望针对常用组件(例如View、Text、Image)能够支持H5端的无障碍需求。

这个 API 长什么样?

常用组件都支持ariaLabel、ariaRole属性,并且支持H5端

@ZakaryCode ZakaryCode added enhancement New feature or request T-h5 Target - 编译到 H5 labels Dec 5, 2023
@ZakaryCode
Copy link
Contributor

h5 端最新的适配器不会过滤对应 props,可以直接书写 aria-* 开头的参数;小程序端由于可能导致包体积过大,可以通过 inject 插件注入。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request T-h5 Target - 编译到 H5 to be closed
Projects
Archived in project
Development

No branches or pull requests

2 participants