@@ -32,29 +32,27 @@ module.exports = function ({ addUtilities, addComponents, theme }) {
32
32
height : options . checkboxSize ,
33
33
width : options . checkboxSize ,
34
34
verticalAlign : 'middle' ,
35
- boxShadow : `inset 0 0 0 ${ options . borderWidth } ${ options . borderColor } ` ,
35
+ borderColor : options . borderColor ,
36
+ borderWidth : options . borderWidth ,
36
37
borderRadius : options . borderRadius ,
37
38
backgroundColor : options . backgroundColor ,
39
+ backgroundOrigin : 'border-box' ,
38
40
userSelect : 'none' ,
39
41
'&:focus' : {
40
42
outline : 'none' ,
41
- boxShadow : `inset 0 0 0 ${ options . borderWidth } ${ options . borderColor } , ${ options . focusShadow } ` ,
43
+ boxShadow : options . focusShadow ,
42
44
} ,
43
45
'&:focus:not(:checked)' : {
44
- boxShadow : `inset 0 0 0 ${ options . borderWidth } ${ options . focusBorderColor } , ${ options . focusShadow } ` ,
46
+ borderColor : options . focusBorderColor ,
45
47
} ,
46
48
'&:checked' : {
47
- boxShadow : 'none' ,
48
49
backgroundColor : options . checkedColor ,
49
50
borderColor : options . checkedColor ,
50
51
backgroundImage : `url("${ svgToDataUri ( options . checkboxIcon ) } ")` ,
51
52
backgroundSize : '100% 100%' ,
52
53
backgroundPosition : 'center' ,
53
54
backgroundRepeat : 'no-repeat' ,
54
55
} ,
55
- '&:focus:checked' : {
56
- boxShadow : `${ options . focusShadow } ` ,
57
- } ,
58
56
'&::-ms-check' : {
59
57
color : 'transparent' , // Hide the check
60
58
background : 'inherit' ,
@@ -69,28 +67,27 @@ module.exports = function ({ addUtilities, addComponents, theme }) {
69
67
height : options . radioSize ,
70
68
width : options . radioSize ,
71
69
verticalAlign : 'middle' ,
72
- boxShadow : `inset 0 0 0 ${ options . borderWidth } ${ options . borderColor } ` ,
70
+ borderColor : options . borderColor ,
71
+ borderWidth : options . borderWidth ,
73
72
borderRadius : '50%' ,
74
73
backgroundColor : options . backgroundColor ,
74
+ backgroundOrigin : 'border-box' ,
75
75
userSelect : 'none' ,
76
76
'&:focus' : {
77
77
outline : 'none' ,
78
- boxShadow : `inset 0 0 0 ${ options . borderWidth } ${ options . borderColor } , ${ options . focusShadow } ` ,
78
+ boxShadow : options . focusShadow ,
79
79
} ,
80
80
'&:focus:not(:checked)' : {
81
- boxShadow : `inset 0 0 0 ${ options . borderWidth } ${ options . focusBorderColor } , ${ options . focusShadow } ` ,
81
+ borderColor : options . focusBorderColor ,
82
82
} ,
83
83
'&:checked' : {
84
- boxShadow : 'none' ,
85
84
backgroundColor : options . checkedColor ,
85
+ borderColor : options . checkedColor ,
86
86
backgroundImage : `url("${ svgToDataUri ( options . radioIcon ) } ")` ,
87
87
backgroundSize : '100% 100%' ,
88
88
backgroundPosition : 'center' ,
89
89
backgroundRepeat : 'no-repeat' ,
90
90
} ,
91
- '&:focus:checked' : {
92
- boxShadow : `${ options . focusShadow } ` ,
93
- } ,
94
91
'&::-ms-check' : {
95
92
color : 'transparent' , // Hide the dot
96
93
background : 'inherit' ,
0 commit comments