@@ -48,19 +48,6 @@ test('the plugin doesn’t do anything if the variants aren’t used', () => {
48
48
} ) ;
49
49
} ) ;
50
50
51
- test ( 'the checked variant is working' , ( ) => {
52
- return generatePluginCss ( [ 'checked' ] ) . then ( css => {
53
- expect ( css ) . toMatchCss ( `
54
- .w-1\\/2 {
55
- width: 50%;
56
- }
57
- .checked\\:w-1\\/2:checked {
58
- width: 50%;
59
- }
60
- ` ) ;
61
- } ) ;
62
- } ) ;
63
-
64
51
test ( 'the hocus variant is working' , ( ) => {
65
52
return generatePluginCss ( [ 'hocus' ] ) . then ( css => {
66
53
expect ( css ) . toMatchCss ( `
@@ -118,14 +105,11 @@ test('the no-hover variant is working', () => {
118
105
} ) ;
119
106
120
107
test ( 'all the variants are working' , ( ) => {
121
- return generatePluginCss ( [ 'checked' , ' group-focus-within', 'group-active' , 'group-visited' , 'group-disabled' , 'hocus' , 'group-hocus' , 'can-hover' , 'no-hover' ] ) . then ( css => {
108
+ return generatePluginCss ( [ 'group-focus-within' , 'group-active' , 'group-visited' , 'group-disabled' , 'hocus' , 'group-hocus' , 'can-hover' , 'no-hover' ] ) . then ( css => {
122
109
expect ( css ) . toMatchCss ( `
123
110
.w-1\\/2 {
124
111
width: 50%;
125
112
}
126
- .checked\\:w-1\\/2:checked {
127
- width: 50%;
128
- }
129
113
.group:focus-within .group-focus-within\\:w-1\\/2 {
130
114
width: 50%;
131
115
}
@@ -159,14 +143,11 @@ test('all the variants are working', () => {
159
143
} ) ;
160
144
161
145
test ( 'all variants can be chained with the responsive variant' , ( ) => {
162
- return generatePluginCss ( [ 'checked' , ' group-focus-within', 'group-active' , 'group-visited' , 'group-disabled' , 'hocus' , 'group-hocus' , 'can-hover' , 'no-hover' , 'responsive' ] ) . then ( css => {
146
+ return generatePluginCss ( [ 'group-focus-within' , 'group-active' , 'group-visited' , 'group-disabled' , 'hocus' , 'group-hocus' , 'can-hover' , 'no-hover' , 'responsive' ] ) . then ( css => {
163
147
expect ( css ) . toMatchCss ( `
164
148
.w-1\\/2 {
165
149
width: 50%;
166
150
}
167
- .checked\\:w-1\\/2:checked {
168
- width: 50%;
169
- }
170
151
.group:focus-within .group-focus-within\\:w-1\\/2 {
171
152
width: 50%;
172
153
}
@@ -199,9 +180,6 @@ test('all variants can be chained with the responsive variant', () => {
199
180
.sm\\:w-1\\/2 {
200
181
width: 50%;
201
182
}
202
- .sm\\:checked\\:w-1\\/2:checked {
203
- width: 50%;
204
- }
205
183
.group:focus-within .sm\\:group-focus-within\\:w-1\\/2 {
206
184
width: 50%;
207
185
}
@@ -236,7 +214,7 @@ test('all variants can be chained with the responsive variant', () => {
236
214
} ) ;
237
215
238
216
test ( 'the variants work with Tailwind’s prefix option' , ( ) => {
239
- return generatePluginCss ( [ 'hover' , 'checked' , ' hocus', 'group-hocus' , 'can-hover' , 'no-hover' ] , {
217
+ return generatePluginCss ( [ 'hover' , 'hocus' , 'group-hocus' , 'can-hover' , 'no-hover' ] , {
240
218
prefix : 'tw-' ,
241
219
} ) . then ( css => {
242
220
expect ( css ) . toMatchCss ( `
@@ -246,9 +224,6 @@ test('the variants work with Tailwind’s prefix option', () => {
246
224
.hover\\:tw-w-1\\/2:hover {
247
225
width: 50%;
248
226
}
249
- .checked\\:tw-w-1\\/2:checked {
250
- width: 50%;
251
- }
252
227
.hocus\\:tw-w-1\\/2:hover, .hocus\\:tw-w-1\\/2:focus {
253
228
width: 50%;
254
229
}
@@ -270,7 +245,7 @@ test('the variants work with Tailwind’s prefix option', () => {
270
245
} ) ;
271
246
272
247
test ( 'the variants work with Tailwind’s important option' , ( ) => {
273
- return generatePluginCss ( [ 'hover' , 'checked' , ' hocus', 'group-hocus' , 'can-hover' , 'no-hover' ] , {
248
+ return generatePluginCss ( [ 'hover' , 'hocus' , 'group-hocus' , 'can-hover' , 'no-hover' ] , {
274
249
important : true ,
275
250
} ) . then ( css => {
276
251
expect ( css ) . toMatchCss ( `
@@ -280,9 +255,6 @@ test('the variants work with Tailwind’s important option', () => {
280
255
.hover\\:w-1\\/2:hover {
281
256
width: 50% !important;
282
257
}
283
- .checked\\:w-1\\/2:checked {
284
- width: 50% !important;
285
- }
286
258
.hocus\\:w-1\\/2:hover, .hocus\\:w-1\\/2:focus {
287
259
width: 50% !important;
288
260
}
@@ -304,7 +276,7 @@ test('the variants work with Tailwind’s important option', () => {
304
276
} ) ;
305
277
306
278
test ( 'the variants work with Tailwind’s important option set to a selector' , ( ) => {
307
- return generatePluginCss ( [ 'hover' , 'checked' , ' hocus', 'group-hocus' , 'can-hover' , 'no-hover' ] , {
279
+ return generatePluginCss ( [ 'hover' , 'hocus' , 'group-hocus' , 'can-hover' , 'no-hover' ] , {
308
280
important : '#app' ,
309
281
} ) . then ( css => {
310
282
expect ( css ) . toMatchCss ( `
@@ -314,9 +286,6 @@ test('the variants work with Tailwind’s important option set to a selector', (
314
286
#app .hover\\:w-1\\/2:hover {
315
287
width: 50%;
316
288
}
317
- #app .checked\\:w-1\\/2:checked {
318
- width: 50%;
319
- }
320
289
#app .hocus\\:w-1\\/2:hover, #app .hocus\\:w-1\\/2:focus {
321
290
width: 50%;
322
291
}
@@ -338,7 +307,7 @@ test('the variants work with Tailwind’s important option set to a selector', (
338
307
} ) ;
339
308
340
309
test ( 'the variants work on utilities that include pseudo-elements' , ( ) => {
341
- return generatePluginCss ( [ 'hover' , 'checked' , ' hocus', 'group-hocus' , 'can-hover' , 'no-hover' ] , { } , {
310
+ return generatePluginCss ( [ 'hover' , 'hocus' , 'group-hocus' , 'can-hover' , 'no-hover' ] , { } , {
342
311
'.placeholder-gray-400::placeholder' : {
343
312
'color' : '#cbd5e0' ,
344
313
} ,
@@ -350,9 +319,6 @@ test('the variants work on utilities that include pseudo-elements', () => {
350
319
.hover\\:placeholder-gray-400:hover::placeholder {
351
320
color: #cbd5e0;
352
321
}
353
- .checked\\:placeholder-gray-400:checked::placeholder {
354
- color: #cbd5e0;
355
- }
356
322
.hocus\\:placeholder-gray-400:hover::placeholder, .hocus\\:placeholder-gray-400:focus::placeholder {
357
323
color: #cbd5e0;
358
324
}
0 commit comments