@@ -41,6 +41,7 @@ module.exports = function ({ addUtilities, addComponents, theme }) {
41
41
backgroundColor : options . backgroundColor ,
42
42
backgroundOrigin : 'border-box' ,
43
43
userSelect : 'none' ,
44
+ colorAdjust : 'exact' ,
44
45
'&:focus' : {
45
46
outline : 'none' ,
46
47
boxShadow : options . focusBoxShadow ,
@@ -57,12 +58,14 @@ module.exports = function ({ addUtilities, addComponents, theme }) {
57
58
backgroundRepeat : 'no-repeat' ,
58
59
} ,
59
60
'&::-ms-check' : {
60
- color : 'transparent' , // Hide the check
61
- background : 'inherit' ,
62
- borderColor : 'inherit' ,
63
- borderRadius : 'inherit' ,
64
- borderWidth : options . borderWidth ,
65
- }
61
+ '@media not print' : {
62
+ color : 'transparent' , // Hide the check
63
+ background : 'inherit' ,
64
+ borderColor : 'inherit' ,
65
+ borderRadius : 'inherit' ,
66
+ borderWidth : options . borderWidth ,
67
+ }
68
+ } ,
66
69
} ,
67
70
'.form-radio' : {
68
71
appearance : 'none' ,
@@ -78,6 +81,7 @@ module.exports = function ({ addUtilities, addComponents, theme }) {
78
81
backgroundColor : options . backgroundColor ,
79
82
backgroundOrigin : 'border-box' ,
80
83
userSelect : 'none' ,
84
+ colorAdjust : 'exact' ,
81
85
'&:focus' : {
82
86
outline : 'none' ,
83
87
boxShadow : options . focusBoxShadow ,
@@ -94,12 +98,14 @@ module.exports = function ({ addUtilities, addComponents, theme }) {
94
98
backgroundRepeat : 'no-repeat' ,
95
99
} ,
96
100
'&::-ms-check' : {
97
- color : 'transparent' , // Hide the dot
98
- background : 'inherit' ,
99
- borderColor : 'inherit' ,
100
- borderRadius : 'inherit' ,
101
- borderWidth : options . borderWidth ,
102
- }
101
+ '@media not print' : {
102
+ color : 'transparent' , // Hide the dot
103
+ background : 'inherit' ,
104
+ borderColor : 'inherit' ,
105
+ borderRadius : 'inherit' ,
106
+ borderWidth : options . borderWidth ,
107
+ } ,
108
+ } ,
103
109
} ,
104
110
'.form-input, .form-textarea, .form-multiselect' : {
105
111
appearance : 'none' ,
@@ -134,8 +140,16 @@ module.exports = function ({ addUtilities, addComponents, theme }) {
134
140
backgroundPosition : `right ${ options . selectIconOffset } center` ,
135
141
backgroundRepeat : 'no-repeat' ,
136
142
backgroundSize : `${ options . selectIconSize } ${ options . selectIconSize } ` ,
143
+ colorAdjust : 'exact' ,
137
144
'&::-ms-expand' : {
138
- display : 'none' ,
145
+ border : 'none' , // The select padding is causing some whitespace around the chevron which looks weird with a border
146
+ color : defaultTheme . colors . gray [ 500 ] , // Chevron color
147
+ '@media not print' : {
148
+ display : 'none' ,
149
+ } ,
150
+ } ,
151
+ '@media print and (-ms-high-contrast: active), print and (-ms-high-contrast: none)' : {
152
+ paddingRight : options . horizontalPadding , // Fix padding for print in IE
139
153
} ,
140
154
'&:focus' : {
141
155
outline : 'none' ,
0 commit comments