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

希望支持无障碍相关属性 #10025

Closed
Leon-z opened this issue Aug 11, 2021 · 1 comment
Closed

希望支持无障碍相关属性 #10025

Leon-z opened this issue Aug 11, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@Leon-z
Copy link

Leon-z commented Aug 11, 2021

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

小程序侧已经支持了无障碍属性,taro在传递时过滤了这些属性,希望能支持无障碍开发

注1:具体需求参见工业和信息化部关于印发《互联网应用适老化及无障碍改造专项行动方案》的通知
注2:微信小程序关于无障碍的支持 https://developers.weixin.qq.com/miniprogram/dev/component/aria-component.html

这个 API 长什么样?

跟微信小程序无障碍文档推荐是一致的

@taro-bot2 taro-bot2 bot added the enhancement New feature or request label Aug 11, 2021
@Leon-z Leon-z changed the title 无障碍相关属性不支持 希望支持无障碍相关属性 Aug 11, 2021
@Chen-jj
Copy link
Contributor

Chen-jj commented Aug 11, 2021

@Leon-z 无障碍属性较多,Taro 默认在模板中加入的话会令包体积增大,而且也不是各个项目都会用到。这里更好的办法是,开发者根据自己的需要,使用 @tarojs/plugin-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
Projects
None yet
Development

No branches or pull requests

2 participants