File tree Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -128,6 +128,13 @@ const getVariant = ({ variant, rank }) => {
128
128
border,
129
129
transition,
130
130
'&:hover' : hover ,
131
+ '@media (hover: none)' : {
132
+ '&:hover' : {
133
+ boxShadow : 'none' ,
134
+ backgroundColor,
135
+ color,
136
+ } ,
137
+ } ,
131
138
'&:active' : active ,
132
139
'&:focus' : focus ,
133
140
'@media (prefers-reduced-motion: reduce)' : {
Original file line number Diff line number Diff line change @@ -66,6 +66,14 @@ exports[`Button can be presented as one of the allowed variants 1`] = `
66
66
}
67
67
}
68
68
69
+ @media (hover:none) {
70
+ .c0 :hover {
71
+ box-shadow: none ;
72
+ background - color : #4b286d ;
73
+ color : #fff ;
74
+ }
75
+ }
76
+
69
77
@media (prefers-reduced-motion:reduce) {
70
78
.c0 {
71
79
-webkit-transition: none ! important ;
@@ -164,6 +172,14 @@ exports[`Button can be presented as one of the new allowed variants 1`] = `
164
172
}
165
173
}
166
174
175
+ @media (hover:none) {
176
+ .c0 :hover {
177
+ box-shadow: none ;
178
+ background - color : #fff ;
179
+ color : #2B8000 ;
180
+ }
181
+ }
182
+
167
183
@media (prefers-reduced-motion:reduce) {
168
184
.c0 {
169
185
-webkit-transition: none ! important ;
@@ -249,6 +265,14 @@ exports[`Button renders 1`] = `
249
265
}
250
266
}
251
267
268
+ @media (hover:none) {
269
+ .c0 :hover {
270
+ box-shadow: none ;
271
+ background - color : #2B8000 ;
272
+ color : #fff ;
273
+ }
274
+ }
275
+
252
276
@media (prefers-reduced-motion:reduce) {
253
277
.c0 {
254
278
-webkit-transition: none ! important ;
You can’t perform that action at this time.
0 commit comments