@@ -36,10 +36,20 @@ export const getStyle = (style: CheckboxStyleType) => {
36
36
${ EllipsisTextCss } ;
37
37
}
38
38
39
+ .ant-checkbox .ant-checkbox-checked > .ant-checkbox-inner {
40
+ border-color : ${ style . checkedBorder } ;
41
+ border-width : ${ ! ! style . borderWidth ? style . borderWidth : '2px' } ;
42
+ }
43
+
44
+ .ant-checkbox : not (.ant-checkbox-checked ) > .ant-checkbox-inner {
45
+ border-color : ${ style . uncheckedBorder } ;
46
+ border-width : ${ ! ! style . borderWidth ? style . borderWidth : '2px' } ;
47
+ }
48
+
39
49
.ant-checkbox-checked {
40
50
.ant-checkbox-inner {
41
51
background-color : ${ style . checkedBackground } ;
42
- border-color : ${ style . checkedBackground } ;
52
+ border-color : ${ style . checkedBorder } ;
43
53
border-width : ${ ! ! style . borderWidth ? style . borderWidth : '2px' } ;
44
54
45
55
& ::after {
@@ -48,17 +58,17 @@ export const getStyle = (style: CheckboxStyleType) => {
48
58
}
49
59
50
60
& ::after {
51
- border-color : ${ style . checkedBackground } ;
61
+ border-color : ${ style . checkedBorder } ;
52
62
border-width : ${ ! ! style . borderWidth ? style . borderWidth : '2px' } ;
53
63
border-radius : ${ style . radius } ;
54
64
}
55
65
}
56
66
57
67
.ant-checkbox-inner {
58
- border-radius : ${ style . radius } ;
59
68
background-color : ${ style . uncheckedBackground } ;
60
- border-color : ${ style . uncheckedBorder } ;
61
- border-width : ${ ! ! style . borderWidth ? style . borderWidth : '2px' } ;
69
+ border-radius : ${ style . radius } ;
70
+ border-color : ${ style . checkedBorder } ;
71
+ border-width : ${ style . borderWidth ? style . borderWidth : '2px' } ;
62
72
}
63
73
64
74
& : hover .ant-checkbox-inner ,
@@ -76,7 +86,7 @@ export const getStyle = (style: CheckboxStyleType) => {
76
86
& : hover .ant-checkbox-inner ,
77
87
.ant-checkbox : hover .ant-checkbox-inner ,
78
88
.ant-checkbox-input : focus + .ant-checkbox-inner {
79
- border-color : ${ style . checkedBackground } ;
89
+ border-color : ${ style . checkedBorder } ;
80
90
border-width : ${ ! ! style . borderWidth ? style . borderWidth : '2px' } ;
81
91
}
82
92
}
0 commit comments