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

暗黑模式生成的class有问题 #153

Closed
QingYuanO opened this issue Apr 7, 2023 · 4 comments
Closed

暗黑模式生成的class有问题 #153

QingYuanO opened this issue Apr 7, 2023 · 4 comments
Assignees
Labels
question Further information is requested

Comments

@QingYuanO
Copy link

你有什么想问的可以写在这
1680848508383

1680848508394

@QingYuanO QingYuanO added the question Further information is requested label Apr 7, 2023
@QingYuanO
Copy link
Author

tailwind版本:3.3.1

@sonofmagic
Copy link
Owner

复现了一下这个问题,是的,在这种 darkMode: 'class' 的情况下,tailwindcss 会生成带有 :is() 这种伪类的选择器。而微信小程序会由于,不认识 :is() 导致样式挂掉。

这个我会尽快发布一个版本,把 :is() 选择器本身展开来兼容这种情况。

@sonofmagic
Copy link
Owner

我发布了 2.0.4 版本,展开了 :is() 这个伪类选择器,可以更新重试一下。

@QingYuanO
Copy link
Author

我发布了 2.0.4 版本,展开了 :is() 这个伪类选择器,可以更新重试一下。

可以了,感谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants