-
Notifications
You must be signed in to change notification settings - Fork 277
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
[tabbar] 深色模式下颜色错误的问题 #2856
Comments
👋 @Nero978,感谢给 TDesign 提出了 issue。 |
@Nero978 感谢反馈和提供修改方案~ 但我可能不太倾向在 app.wxss 中通过增加 view 标签选择器的方式来规避 custom-tab-bar 、或 root-portal 组件在 webview模式下无法继承 page选择器样式的问题。
综合考虑,我更倾向新增一个 使用上大概是:
|
This was referenced Jun 12, 2024
#2857 涉及文档补充 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
tdesign-miniprogram 版本
1.4.2
重现链接
No response
重现步骤
在深色模式下,通过在
app.wxss
中引入npm包内的miniprogram_npm/tdesign-miniprogram/common/style/theme/_index.wxss
(design token文件),
tabbar
的颜色定义有误。原因是现阶段的token文件内定义的是
page
选择器。而
tabbar
是一个特殊的组件,按照微信的文档(https://developers.weixin.qq.com/miniprogram/dev/framework/ability/custom-tabbar.html ),应该定义在custom-tab-bar
文件夹内,这将导致tabbar
渲染在page
标签以外,造成深色模式下tabbar
颜色不正确的问题。可以考虑在token文件中将加一个view
标签解决这个问题。期望结果
tabbar能够正确显示深色模式下的颜色
实际结果
No response
基础库版本
3.4.1
补充说明
No response
The text was updated successfully, but these errors were encountered: