@@ -22,6 +22,7 @@ module.exports = {
2222
2323 addComponents ( {
2424 '.form-checkbox' : {
25+ appearance : 'none' ,
2526 display : 'inline-block' ,
2627 height : theme ( 'spacing.4' , defaultTheme . spacing [ 4 ] ) ,
2728 width : theme ( 'spacing.4' , defaultTheme . spacing [ 4 ] ) ,
@@ -30,14 +31,14 @@ module.exports = {
3031 borderRadius : theme ( 'borderRadius.default' , defaultTheme . borderRadius . default ) ,
3132 backgroundColor : '#fff' ,
3233 userSelect : 'none' ,
33- 'input[type=checkbox]:focus + &' : {
34+ 'input[type=checkbox]:focus + &, input[type=checkbox]&:focus ' : {
3435 outline : 'none' ,
3536 boxShadow : theme ( 'boxShadow.outline' , defaultTheme . boxShadow . outline ) ,
3637 } ,
37- 'input[type=checkbox]:focus:not(:checked) + &' : {
38+ 'input[type=checkbox]:focus:not(:checked) + &, input[type=checkbox]&:focus:not(:checked) ' : {
3839 borderColor : defaultTheme . colors . blue [ 400 ] ,
3940 } ,
40- 'input[type=checkbox]:checked + &' : {
41+ 'input[type=checkbox]:checked + &, input[type=checkbox]&:checked ' : {
4142 backgroundColor : 'currentColor' ,
4243 borderColor : 'currentColor' ,
4344 backgroundImage : `url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='%23ffffff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.5 14.586l7.293-8.293a1 1 0 0 1 1.414 1.414l-8 9a1 1 0 0 1-1.414 0l-4-4a1 1 0 0 1 1.414-1.414l3.293 3.293z' fill-rule='evenodd'/%3E%3C/svg%3E")` ,
@@ -47,6 +48,7 @@ module.exports = {
4748 } ,
4849 } ,
4950 '.form-radio' : {
51+ appearance : 'none' ,
5052 display : 'inline-block' ,
5153 height : theme ( 'spacing.4' , defaultTheme . spacing [ 4 ] ) ,
5254 width : theme ( 'spacing.4' , defaultTheme . spacing [ 4 ] ) ,
@@ -55,14 +57,14 @@ module.exports = {
5557 borderRadius : '9999px' ,
5658 backgroundColor : '#fff' ,
5759 userSelect : 'none' ,
58- 'input[type=radio]:focus + &' : {
60+ 'input[type=radio]:focus + &, input[type=radio]&:focus ' : {
5961 outline : 'none' ,
6062 boxShadow : theme ( 'boxShadow.outline' , defaultTheme . boxShadow . outline ) ,
6163 } ,
62- 'input[type=radio]:focus:not(:checked) + &' : {
64+ 'input[type=radio]:focus:not(:checked) + &, input[type=radio]&:focus:not(:checked) ' : {
6365 borderColor : defaultTheme . colors . blue [ 400 ] ,
6466 } ,
65- 'input[type=radio]:checked + &' : {
67+ 'input[type=radio]:checked + &, input[type=radio]&:checked ' : {
6668 backgroundColor : 'currentColor' ,
6769 borderColor : 'currentColor' ,
6870 backgroundImage : `url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='%23ffffff' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3C/svg%3E")` ,
0 commit comments