From b5291f01a0fe97607adb7de5331600511467efeb Mon Sep 17 00:00:00 2001 From: atomoo Date: Tue, 23 Apr 2019 16:06:43 +0800 Subject: [PATCH] remove active style from disabled Switch --- components/switch/style/index.less | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/switch/style/index.less b/components/switch/style/index.less index d6eff907f8..a2fdcf40a2 100644 --- a/components/switch/style/index.less +++ b/components/switch/style/index.less @@ -47,8 +47,8 @@ box-shadow: 0 2px 4px 0 @switch-shadow-color; } - &:active::before, - &:active::after { + &:not(&-disabled):active::before, + &:not(&-disabled):active::after { width: 24px; }