fix: Checkbox should not show highlight when disabled (#18168)

* fix: Checkbox should not show highlight when disabled

* add comment
This commit is contained in:
zombieJ 2019-08-14 18:19:07 +08:00 committed by GitHub
parent 40f64cb095
commit dfd6ce8609
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -137,6 +137,12 @@
color: @disabled-color; color: @disabled-color;
cursor: not-allowed; 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 { .@{checkbox-prefix-cls}-wrapper {