From b24dc1af9d92ecf07d60ba805828732cbf4965f9 Mon Sep 17 00:00:00 2001 From: rd <1344903914@qq.com> Date: Wed, 17 Sep 2025 17:58:11 +0800 Subject: [PATCH] =?UTF-8?q?style(button):=20=E8=B0=83=E6=95=B4=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E6=BF=80=E6=B4=BB=E7=8A=B6=E6=80=81=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 优化普通按钮、幽灵按钮和危险按钮在激活状态下的样式 - 添加白色背景和透明边框,提高点击反馈的视觉效果 --- src/styles/components/ant-button.scss | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/styles/components/ant-button.scss b/src/styles/components/ant-button.scss index 80b188b..c9bbdf2 100644 --- a/src/styles/components/ant-button.scss +++ b/src/styles/components/ant-button.scss @@ -71,6 +71,8 @@ } &:active { + color: #fff !important; + border-color: transparent !important; background-color: $color-primary-7 !important; } } @@ -109,6 +111,7 @@ &:active { border-color: $color-primary-7 !important; color: $color-primary-7 !important; + background-color: #fff !important; } } &.ant-btn-dangerous { @@ -190,6 +193,7 @@ &:active { color: $color-primary-7 !important; + border-color: transparent !important; } } &.ant-btn-dangerous { @@ -225,6 +229,7 @@ &:active { color: $color-primary-7 !important; + border-color: transparent !important; } } &.ant-btn-dangerous {