qiankun icon indicating copy to clipboard operation
qiankun copied to clipboard

[Feature Request] 使用 experimentalStyleIsolation 配置实现样式隔离,使用 :where(div[data-qiankun="xxx"]) 代替 div[data-qiankun="xxx"] 。

Open zhl0791 opened this issue 1 year ago • 1 comments

Background

添加 experimentalStyleIsolation 实现样式隔离,结合 antd 5 使用时,样式隔离机制会破坏子应用的样式优先级。

Proposal

使用 :where(div[data-qiankun="xxx"]) 代替 div[data-qiankun="xxx"]

Additional context

:where 选择器能限制样式的范围,但不会改变子应用中 css 选择器的权重,对子应用的影响最小。

zhl0791 avatar Nov 20 '23 11:11 zhl0791