From e15b9c5f37ef08642cec965e17ddcda865202115 Mon Sep 17 00:00:00 2001 From: ycjcl868 <45808948@qq.com> Date: Wed, 4 Dec 2019 20:14:28 +0800 Subject: [PATCH] fix: dark button color --- components/button/style/mixin.less | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/components/button/style/mixin.less b/components/button/style/mixin.less index 3f0b15984f..aa0ac3f3c6 100644 --- a/components/button/style/mixin.less +++ b/components/button/style/mixin.less @@ -67,10 +67,7 @@ &:hover, &:focus { & when (@theme = dark) { - .button-color( - ~`colorPalette('@{btn-primary-bg}', 7) `; @background; - ~`colorPalette('@{btn-primary-bg}', 7) ` - ); + .button-color(@primary-5; @background; @primary-5); } & when not (@theme = dark) { .button-color( @@ -82,12 +79,9 @@ &:active, &.active { & when (@theme = dark) { - .button-color( - ~`colorPalette('@{btn-primary-bg}', 5) `; @background; - ~`colorPalette('@{btn-primary-bg}', 5) ` - ); + .button-color(@primary-7; @background; @primary-7); } - & when not (@theme = default) { + & when not (@theme = dark) { .button-color( ~`colorPalette('@{btn-primary-bg}', 7) `; @background; ~`colorPalette('@{btn-primary-bg}', 7) `