From 3a1f0b6d384de88104c03621c3d5cbe7a791c2de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Chuailei000=E2=80=9D?= <2280131253@qq.com> Date: Mon, 11 Jul 2022 18:17:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dinfo=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?button=E7=9A=84=E6=A0=B7=E5=BC=8F=E7=89=B9=E6=AE=8A=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/theme/element-extra.css | 6 ++++++ src/utils/theme/index.js | 1 - 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/public/theme/element-extra.css b/public/theme/element-extra.css index e3a6bdc72..64b13622a 100644 --- a/public/theme/element-extra.css +++ b/public/theme/element-extra.css @@ -1,6 +1,12 @@ /* 这里只写element-variables里面改不动的、且和主题系列颜色相关的样式!!! */ /* 主题相关看该文件夹下的README.md */ +/* info type special treatment */ +.el-button--info { + background-color: info; + border-color: info; +} + .el-alert--info.is-light { background-color: light-9; color: light-2; diff --git a/src/utils/theme/index.js b/src/utils/theme/index.js index 850fbbca4..272a2ad63 100644 --- a/src/utils/theme/index.js +++ b/src/utils/theme/index.js @@ -19,7 +19,6 @@ export function changeElementColor(themeColors) { if (['primary', 'success', 'info', 'warning', 'danger'].includes(key)) { const blendColor = mix('ffffff', value.replace(/#/g, ''), 35) colorsCssText = colorsCssText + ` - .el-button--${key}, .el-button--${key}:focus { background-color: ${value}!important; border-color: ${value}!important;