feat(Checkbox): improve cursor

This commit is contained in:
陈嘉涵 2020-01-11 08:54:22 +08:00
parent 3d10d42fcc
commit 719928cb5a
2 changed files with 24 additions and 0 deletions

View File

@ -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;

View File

@ -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;