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

部分antd样式没被隔离,也就是没加上前缀 #854

Closed
Dreamvsforward opened this issue Jul 19, 2023 · 7 comments
Closed

部分antd样式没被隔离,也就是没加上前缀 #854

Dreamvsforward opened this issue Jul 19, 2023 · 7 comments
Labels
In planning In planning style problem style problem

Comments

@Dreamvsforward
Copy link

问题描述

问题的具体描述

复现步骤

上传截图

请上传代码截图、控制台、终端等截图以帮助我们了解您的问题。
image

复现仓库

请提供一个精简的代码仓库,然后上传到自己的 github,以帮助我们复现您的问题。

环境信息

  • micro-app版本:1.0.0-beta.5
  • 主应用前端框架&版本:vue
  • 子应用前端框架&版本:umi"antd": "^5.4.0", "@umijs/max": "^4.0.72",
  • 构建工具&版本:
@raoenhui
Copy link
Member

这块antd有什么特殊的吗,是哪个antd组件?

@Dreamvsforward
Copy link
Author

这块antd有什么特殊的吗,是哪个antd组件?

没特殊,antd": "^5.4.0"

@raoenhui
Copy link
Member

raoenhui commented Aug 4, 2023

:where这种伪类建议子应用自己加css权重,覆盖父应用样式

@piisy
Copy link

piisy commented Aug 10, 2023

把 umijs 的 antd 插件去掉,就不会引入 reset.css 了。算是一个解决办法吧

@MorningK
Copy link

MorningK commented Aug 28, 2023

:where这种伪类建议子应用自己加css权重,覆盖父应用样式

感觉可能是因为现有的样式隔离没有处理css-in-js的情况,只处理了打包引入css,比如reset.css,这样在开启了样式隔离的情况下,反而导致了reset的样式的优先级高于了:where的实际样式?

@raoenhui
Copy link
Member

是的。帮忙可以提供一个精简的代码仓库,然后上传到自己的 github。我后面看看把这块兼容下

@bailicangdu bailicangdu added style problem style problem In planning In planning labels Sep 18, 2023
@favorite58
Copy link

这个问题现在的版本有解决吗?我升级到了最新版也会出现reset.scss样式权重高于element plus样式的问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
In planning In planning style problem style problem
Projects
None yet
Development

No branches or pull requests

6 participants