From 719928cb5ac6236afc2330f1aec591dcc7f47181 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=98=89=E6=B6=B5?= Date: Sat, 11 Jan 2020 08:54:22 +0800 Subject: [PATCH] feat(Checkbox): improve cursor --- src/checkbox/index.less | 12 ++++++++++++ src/radio/index.less | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/src/checkbox/index.less b/src/checkbox/index.less index ab5fbf077..9b765345c 100644 --- a/src/checkbox/index.less +++ b/src/checkbox/index.less @@ -4,13 +4,23 @@ display: flex; align-items: center; overflow: hidden; + cursor: pointer; user-select: none; + &--disabled { + cursor: not-allowed; + } + + &--label-disabled { + cursor: default; + } + &__icon { flex: none; height: 1em; font-size: @checkbox-size; line-height: 1em; + cursor: pointer; .van-icon { display: block; @@ -41,6 +51,8 @@ } &--disabled { + cursor: not-allowed; + .van-icon { background-color: @checkbox-disabled-background-color; border-color: @checkbox-disabled-icon-color; diff --git a/src/radio/index.less b/src/radio/index.less index 833aba0ed..637d24e0e 100644 --- a/src/radio/index.less +++ b/src/radio/index.less @@ -4,13 +4,23 @@ display: flex; align-items: center; overflow: hidden; + cursor: pointer; user-select: none; + &--disabled { + cursor: not-allowed; + } + + &--label-disabled { + cursor: default; + } + &__icon { flex: none; height: 1em; font-size: @radio-size; line-height: 1em; + cursor: pointer; .van-icon { display: block; @@ -41,6 +51,8 @@ } &--disabled { + cursor: not-allowed; + .van-icon { background-color: @radio-disabled-background-color; border-color: @radio-disabled-icon-color;