From 986bd02d6d28f821e11c6fd9dbb221b4633e28b2 Mon Sep 17 00:00:00 2001 From: afc163 Date: Thu, 8 Sep 2022 13:35:44 +0800 Subject: [PATCH] revert: fix Switch background flush bug (#37458) revert #35103 close #37453 --- components/switch/style/index.less | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/components/switch/style/index.less b/components/switch/style/index.less index 33a0215015..5ead4105dc 100644 --- a/components/switch/style/index.less +++ b/components/switch/style/index.less @@ -17,8 +17,7 @@ height: @switch-height; line-height: @switch-height; vertical-align: middle; - background-image: linear-gradient(to right, @disabled-color, @disabled-color), - linear-gradient(to right, @component-background, @component-background); + background-color: @disabled-color; border: 0; border-radius: 100px; cursor: pointer; @@ -39,7 +38,7 @@ } &-checked { - background: @switch-color; + background-color: @switch-color; } &-loading,