@@ -105,14 +105,17 @@ test('the no-hover variant is working', () => {
105105} ) ;
106106
107107test ( '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 => {
109109 expect ( css ) . toMatchCss ( `
110110 .w-1\\/2 {
111111 width: 50%;
112112 }
113113 .group:focus-within .group-focus-within\\:w-1\\/2 {
114114 width: 50%;
115115 }
116+ .group:focus-visible .group-focus-visible\\:w-1\\/2 {
117+ width: 50%;
118+ }
116119 .group:active .group-active\\:w-1\\/2 {
117120 width: 50%;
118121 }
@@ -143,14 +146,17 @@ test('all the variants are working', () => {
143146} ) ;
144147
145148test ( '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 => {
147150 expect ( css ) . toMatchCss ( `
148151 .w-1\\/2 {
149152 width: 50%;
150153 }
151154 .group:focus-within .group-focus-within\\:w-1\\/2 {
152155 width: 50%;
153156 }
157+ .group:focus-visible .group-focus-visible\\:w-1\\/2 {
158+ width: 50%;
159+ }
154160 .group:active .group-active\\:w-1\\/2 {
155161 width: 50%;
156162 }
@@ -183,6 +189,9 @@ test('all variants can be chained with the responsive variant', () => {
183189 .group:focus-within .sm\\:group-focus-within\\:w-1\\/2 {
184190 width: 50%;
185191 }
192+ .group:focus-visible .sm\\:group-focus-visible\\:w-1\\/2 {
193+ width: 50%;
194+ }
186195 .group:active .sm\\:group-active\\:w-1\\/2 {
187196 width: 50%;
188197 }
0 commit comments