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

当body里面有data-theme的时候,css 设置对应主题下的样式, 不生效 #1458

Open
YFAnt opened this issue Nov 27, 2024 · 1 comment
Assignees

Comments

@YFAnt
Copy link

YFAnt commented Nov 27, 2024

问题描述

问题的具体描述

image

设置样式是这样设置的, micro-app 嵌入的时候,data-theme会设置到body 上
image

但是此时结构就不对了

正确的路径是 : [data-theme=light] micro-app[name=abc] .head-bg[data-v-b5be1e08]

目前的路径是 : micro-app[name=abc] [data-theme=light].head-bg[data-v-b5be1e08]

导致不生效了

复现步骤

上传截图

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

复现仓库

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

环境信息

  • micro-app版本:1.0.0-rc.15
  • 主应用前端框架&版本:
  • 子应用前端框架&版本:
  • 构建工具&版本:
@timhub66 timhub66 self-assigned this Dec 2, 2024
@timhub66
Copy link
Collaborator

timhub66 commented Dec 9, 2024

@YFAnt ,html和body为共用,可以通过基座的钩子或子应用运行环境 做个性化需求处理

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