From dfd6ce86093b0a9740531254826cf0b8e565e861 Mon Sep 17 00:00:00 2001 From: zombieJ Date: Wed, 14 Aug 2019 18:19:07 +0800 Subject: [PATCH] fix: Checkbox should not show highlight when disabled (#18168) * fix: Checkbox should not show highlight when disabled * add comment --- components/checkbox/style/mixin.less | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/components/checkbox/style/mixin.less b/components/checkbox/style/mixin.less index 96e8774a60..7a3b1c8866 100644 --- a/components/checkbox/style/mixin.less +++ b/components/checkbox/style/mixin.less @@ -137,6 +137,12 @@ color: @disabled-color; cursor: not-allowed; } + + // Not show highlight border of checkbox when disabled + &:hover::after, + .@{checkbox-prefix-cls}-wrapper:hover &::after { + visibility: hidden; + } } .@{checkbox-prefix-cls}-wrapper {