@@ -105,14 +105,17 @@ test('the no-hover variant is working', () => {
105
105
} ) ;
106
106
107
107
test ( 'all the variants are working' , ( ) => {
108
- return generatePluginCss ( [ '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-focus-visible' , 'group- active', 'group-visited' , 'group-disabled' , 'hocus' , 'group-hocus' , 'can-hover' , 'no-hover' ] ) . then ( css => {
109
109
expect ( css ) . toMatchCss ( `
110
110
.w-1\\/2 {
111
111
width: 50%;
112
112
}
113
113
.group:focus-within .group-focus-within\\:w-1\\/2 {
114
114
width: 50%;
115
115
}
116
+ .group:focus-visible .group-focus-visible\\:w-1\\/2 {
117
+ width: 50%;
118
+ }
116
119
.group:active .group-active\\:w-1\\/2 {
117
120
width: 50%;
118
121
}
@@ -143,14 +146,17 @@ test('all the variants are working', () => {
143
146
} ) ;
144
147
145
148
test ( 'all variants can be chained with the responsive variant' , ( ) => {
146
- return generatePluginCss ( [ 'group-focus-within' , 'group-active' , 'group-visited' , 'group-disabled' , 'hocus' , 'group-hocus' , 'can-hover' , 'no-hover' , 'responsive' ] ) . then ( css => {
149
+ return generatePluginCss ( [ 'group-focus-within' , 'group-focus-visible' , 'group- active', 'group-visited' , 'group-disabled' , 'hocus' , 'group-hocus' , 'can-hover' , 'no-hover' , 'responsive' ] ) . then ( css => {
147
150
expect ( css ) . toMatchCss ( `
148
151
.w-1\\/2 {
149
152
width: 50%;
150
153
}
151
154
.group:focus-within .group-focus-within\\:w-1\\/2 {
152
155
width: 50%;
153
156
}
157
+ .group:focus-visible .group-focus-visible\\:w-1\\/2 {
158
+ width: 50%;
159
+ }
154
160
.group:active .group-active\\:w-1\\/2 {
155
161
width: 50%;
156
162
}
@@ -183,6 +189,9 @@ test('all variants can be chained with the responsive variant', () => {
183
189
.group:focus-within .sm\\:group-focus-within\\:w-1\\/2 {
184
190
width: 50%;
185
191
}
192
+ .group:focus-visible .sm\\:group-focus-visible\\:w-1\\/2 {
193
+ width: 50%;
194
+ }
186
195
.group:active .sm\\:group-active\\:w-1\\/2 {
187
196
width: 50%;
188
197
}
0 commit comments