From ce619c67e231b3bc148a450b4e524939d4d0cacc Mon Sep 17 00:00:00 2001 From: neverland Date: Wed, 4 Nov 2020 18:32:35 +0800 Subject: [PATCH] style(Switch): remove unnecessary z-index (#7497) --- src/style/var.less | 1 - src/switch/index.less | 1 - 2 files changed, 2 deletions(-) diff --git a/src/style/var.less b/src/style/var.less index 1599fe253..92f0481e1 100644 --- a/src/style/var.less +++ b/src/style/var.less @@ -731,7 +731,6 @@ @switch-width: 2em; @switch-height: 1em; @switch-node-size: 1em; -@switch-node-z-index: 1; @switch-node-background-color: @white; @switch-node-box-shadow: 0 3px 1px 0 rgba(0, 0, 0, 0.05), 0 2px 2px 0 rgba(0, 0, 0, 0.1), 0 3px 3px 0 rgba(0, 0, 0, 0.05); diff --git a/src/switch/index.less b/src/switch/index.less index 8baa7a43a..c0d65d7be 100644 --- a/src/switch/index.less +++ b/src/switch/index.less @@ -17,7 +17,6 @@ position: absolute; top: 0; left: 0; - z-index: @switch-node-z-index; width: @switch-node-size; height: @switch-node-size; background-color: @switch-node-background-color;