qiankun
qiankun copied to clipboard
[Feature Request] 使用 experimentalStyleIsolation 配置实现样式隔离,使用 :where(div[data-qiankun="xxx"]) 代替 div[data-qiankun="xxx"] 。
Background
添加 experimentalStyleIsolation
实现样式隔离,结合 antd 5 使用时,样式隔离机制会破坏子应用的样式优先级。
Proposal
使用 :where(div[data-qiankun="xxx"])
代替 div[data-qiankun="xxx"]
。
Additional context
:where
选择器能限制样式的范围,但不会改变子应用中 css 选择器的权重,对子应用的影响最小。