fix: element hover style in dark theme (#4983)

This commit is contained in:
Netfan
2024-11-30 10:55:29 +08:00
committed by GitHub
parent 253abc5ef1
commit 3fb286b552
4 changed files with 22 additions and 0 deletions

View File

@@ -260,6 +260,9 @@ export function useElementPlusDesignTokens() {
'--el-fill-color-light': getCssVariableValue('--accent'),
'--el-fill-color-lighter': getCssVariableValue('--accent-lighter'),
'--el-fill-color-dark': getCssVariableValue('--accent-dark'),
'--el-fill-color-darker': getCssVariableValue('--accent-darker'),
// 解决ElLoading背景色问题
'--el-mask-color': isDark.value
? 'rgba(0,0,0,.8)'