浏览代码

fix: parameters in color contrast calculations to ensure white is correctly passed as the background color

nian 1 月之前
父节点
当前提交
eec6c0932b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/layout/header/actions/component/PreferencesDrawer.vue

+ 1 - 1
src/layout/header/actions/component/PreferencesDrawer.vue

@@ -132,7 +132,7 @@ const showNoiseModal = () => {
                 <span
                   :style="
                     currentColor && {
-                      color: ccAPCA(currentColor, twc.neutral[150], twc.neutral[950]),
+                      color: ccAPCA(currentColor, twc.neutral[150], twc.neutral[950], '#fff'),
                     }
                   "
                   >{{ currentColor }}</span