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

css 属性选择符包含body字符串,生成style标签样式异常 #2983

Open
ccrsky opened this issue Jul 15, 2024 · 1 comment
Open

Comments

@ccrsky
Copy link

ccrsky commented Jul 15, 2024

What happens?

css 属性选择符包含body字符串,生成style标签样式异常

Mini Showcase Repository(REQUIRED)

How To Reproduce

css源代码

[data-region="aside"][data-renderer="page"] {
  min-height: calc(100vh - 131px);
}

[data-region="body1"][data-renderer="page"] {
  min-height: calc(100vh - 165px);
}

.atest2 {
  color: green;
}

通过qiankun注入后style标签内容

div[data-qiankun="demo-app"] [data-region="aside"][data-renderer="page"] { min-height: calc(-131px + 100vh); }div[data-qiankun="approval-workflow"] .atest { color: red; }

[data-region=div[data-qiankun="demo-app"]1"][data-renderer="page"] { min-height: calc(-165px + 100vh); }div[data-qiankun="approval-workflow"] .atest2 { color: green; }

body 被 div[data-qiankun="demo-app"] 替换了,样式异常

Context

  • qiankun Version: 2.10.16
  • Platform Version: Mac
  • Browser Version: Chrome v126.0.6478.127
Copy link

由于缺乏足够的信息(github、stackblitz、codesandbox等可复现仓库),我们暂时关闭了该 Issue。请修改(不要回复) Issue 提供最小重现以重新开启。谢谢。如果只是单独的技术咨询,可移步 https://qiankun.umijs.org/#-community 交流~

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 15, 2024
@gongshun gongshun reopened this Jul 16, 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