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

[TabBar] 微信开发者工具警告 Some selectors are not allowed in component wxss #2528

Closed
Oreslok opened this issue Jan 4, 2024 · 3 comments

Comments

@Oreslok
Copy link

Oreslok commented Jan 4, 2024

tdesign-miniprogram 版本

1.2.3

重现链接

No response

重现步骤

在微信小程序中,使用TabBar后,微信开发者工具警告:
Some selectors are not allowed in component wxss, including tag name selectors, ID selectors, and attribute selectors.(./custom-tab-bar/index.wxss:7:1)

index.wxss中相关代码
@keyframes tdesign-fade-out { from { opacity: 1; } to { opacity: 0; } }

期望结果

No response

实际结果

No response

基础库版本

3.2.5

补充说明

No response

Copy link
Contributor

github-actions bot commented Jan 4, 2024

👋 @Oreslok,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@betavs
Copy link
Collaborator

betavs commented Jan 4, 2024

貌似是你本地代码的问题,能否提供 ./custom-tab-bar/index.wxss:7:1 代码

@Oreslok
Copy link
Author

Oreslok commented Jan 4, 2024

貌似是你本地代码的问题,能否提供 ./custom-tab-bar/index.wxss:7:1 代码

准备搞个复现的demo给你,没想到还真是本地代码的问题 冏

@Oreslok Oreslok closed this as completed Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants