ant-design-vue icon indicating copy to clipboard operation
ant-design-vue copied to clipboard

暗色模式下,config-provider计算的主色和传入的色值不一致

Open felixzhou555 opened this issue 1 year ago • 0 comments
trafficstars

  • [x] I have searched the issues of this repository and believe that this is not a duplicate.

Version

4.1.0

Environment

win11 crhome 123.0.6312.86

Reproduction link

Edit on CodeSandbox

Steps to reproduce

正常通过config-provider传入theme, algorithm和token

What is expected?

期望不管algorithm为亮色还是暗色,计算出的色值与传入的色值保持一致

What is actually happening?

当algorithm为defaultAlgorithm时,计算出的色值为传入的色值;当algorithm为darkAlgorithm时,计算出的色值为与传入的色值不一致! ee4ff905565c0707ebf2f62b65a8f319

felixzhou555 avatar Apr 03 '24 09:04 felixzhou555