@@ -37,6 +37,7 @@ module.exports = function ({ addUtilities, addComponents, theme }) {
37
37
borderRadius : options . borderRadius ,
38
38
backgroundColor : options . backgroundColor ,
39
39
userSelect : 'none' ,
40
+ colorAdjust : 'exact' ,
40
41
'&:focus' : {
41
42
outline : 'none' ,
42
43
boxShadow : options . focusShadow ,
@@ -53,12 +54,14 @@ module.exports = function ({ addUtilities, addComponents, theme }) {
53
54
backgroundRepeat : 'no-repeat' ,
54
55
} ,
55
56
'&::-ms-check' : {
56
- color : 'transparent' , // Hide the check
57
- background : 'inherit' ,
58
- borderColor : 'inherit' ,
59
- borderRadius : 'inherit' ,
60
- borderWidth : options . borderWidth ,
61
- }
57
+ '@media not print' : {
58
+ color : 'transparent' , // Hide the check
59
+ background : 'inherit' ,
60
+ borderColor : 'inherit' ,
61
+ borderRadius : 'inherit' ,
62
+ borderWidth : options . borderWidth ,
63
+ }
64
+ } ,
62
65
} ,
63
66
'.form-radio' : {
64
67
appearance : 'none' ,
@@ -71,6 +74,7 @@ module.exports = function ({ addUtilities, addComponents, theme }) {
71
74
borderRadius : '50%' ,
72
75
backgroundColor : options . backgroundColor ,
73
76
userSelect : 'none' ,
77
+ colorAdjust : 'exact' ,
74
78
'&:focus' : {
75
79
outline : 'none' ,
76
80
boxShadow : options . focusShadow ,
@@ -87,12 +91,14 @@ module.exports = function ({ addUtilities, addComponents, theme }) {
87
91
backgroundRepeat : 'no-repeat' ,
88
92
} ,
89
93
'&::-ms-check' : {
90
- color : 'transparent' , // Hide the dot
91
- background : 'inherit' ,
92
- borderColor : 'inherit' ,
93
- borderRadius : 'inherit' ,
94
- borderWidth : options . borderWidth ,
95
- }
94
+ '@media not print' : {
95
+ color : 'transparent' , // Hide the dot
96
+ background : 'inherit' ,
97
+ borderColor : 'inherit' ,
98
+ borderRadius : 'inherit' ,
99
+ borderWidth : options . borderWidth ,
100
+ } ,
101
+ } ,
96
102
} ,
97
103
'.form-input, .form-textarea, .form-multiselect' : {
98
104
appearance : 'none' ,
@@ -125,8 +131,16 @@ module.exports = function ({ addUtilities, addComponents, theme }) {
125
131
backgroundPosition : `right ${ options . selectIconOffset } center` ,
126
132
backgroundRepeat : 'no-repeat' ,
127
133
backgroundSize : `${ options . selectIconSize } ${ options . selectIconSize } ` ,
134
+ colorAdjust : 'exact' ,
128
135
'&::-ms-expand' : {
129
- display : 'none' ,
136
+ border : 'none' , // The select padding is causing some whitespace around the chevron which looks weird with a border
137
+ color : defaultTheme . colors . gray [ 500 ] , // Chevron color
138
+ '@media not print' : {
139
+ display : 'none' ,
140
+ } ,
141
+ } ,
142
+ '@media print and (-ms-high-contrast: active), print and (-ms-high-contrast: none)' : {
143
+ paddingRight : options . horizontalPadding , // Fix padding for print in IE
130
144
} ,
131
145
'&:focus' : {
132
146
outline : 'none' ,
0 commit comments