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;