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

umi4 使用hd root节点的样式会被放大两倍 #597

Closed
1998feng opened this issue Aug 14, 2023 · 1 comment
Closed

umi4 使用hd root节点的样式会被放大两倍 #597

1998feng opened this issue Aug 14, 2023 · 1 comment

Comments

@1998feng
Copy link

看源码中是默认了
selectorDoubleRemList: [ /^.adm-/, /^.ant-/, /^\:root/ ]
但是我这里选择覆盖后,
image
:root里的css变量还是被放大了两倍
image

@xiaohuoni
Copy link
Member

xiaohuoni commented Aug 17, 2023

image
给个复现,或者看下 examples/mobile5

  hd: {
    px2rem: {
      selectorDoubleRemList: [],
    },
  },

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